From: <du...@us...> - 2004-03-02 21:31:56
|
Update of /cvsroot/tuxaator/tuxaator/Plugins/RSS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3242 Modified Files: Plugin.pm Log Message: + put $rss->parse() inside an eval block, so that it does not crash the bot, if parsing fails for some reason Index: Plugin.pm =================================================================== RCS file: /cvsroot/tuxaator/tuxaator/Plugins/RSS/Plugin.pm,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Plugin.pm 21 Dec 2003 21:30:53 -0000 1.2 --- Plugin.pm 2 Mar 2004 21:19:49 -0000 1.3 *************** *** 69,73 **** }; ! $rss->parse($cache_contents); my @to_show; --- 69,76 ---- }; ! unless (eval "\$rss->parse(\$cache_contents)") ! { ! return 0; ! }; my @to_show; *************** *** 99,102 **** --- 102,106 ---- }; }; + close F; # check every half an hour $self->{'Core'}->{'connection'}->schedule(30*60,\&do_headlines); |