summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/aggregate.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/aggregate.pm')
-rw-r--r--IkiWiki/Plugin/aggregate.pm10
1 files changed, 8 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm
index 99b26a546..75e6f31d6 100644
--- a/IkiWiki/Plugin/aggregate.pm
+++ b/IkiWiki/Plugin/aggregate.pm
@@ -93,7 +93,7 @@ sub preprocess (@) { #{{{
return "<a href=\"".$feed->{url}."\">".$feed->{name}."</a>: ".
"<i>".$feed->{message}."</i> (".$feed->{numposts}.
- " stored posts; ".$feed->{newposts}." new)";
+ " stored posts; ".$feed->{newposts}." new)<br />";
} # }}}
sub delete (@) { #{{{
@@ -192,9 +192,15 @@ FEED: foreach my $feed (values %feeds) {
if (! @urls) {
$feed->{message}="could not find feed at ".$feed->{feedurl};
IkiWiki::debug($feed->{message});
+ next FEED;
}
foreach my $url (@urls) {
- my $f=XML::Feed->parse(URI->new($url));
+ my $f=eval{XML::Feed->parse(URI->new($url))};
+ if ($@) {
+ $feed->{message}="feed crashed XML::Feed! $@";
+ IkiWiki::debug($feed->{message});
+ next FEED;
+ }
if (! $f) {
$feed->{message}=XML::Feed->errstr;
IkiWiki::debug($feed->{message});