Changeset 17

Show
Ignore:
Timestamp:
02/05/06 09:54:12
Author:
miyagawa
Message:

should wrap it in eval so XML::RSS::LibXML can throw an exception

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Aggregator/Simple.pm

    r16 r17  
    2323        my $url = $sub->url; 
    2424        $context->log(info => "Fetch $url"); 
    25         my $remote = XML::Feed->parse(URI->new($url))
     25        my $remote = eval { XML::Feed->parse(URI->new($url)) }
    2626 
    2727        unless ($remote) {