Changeset 1696

Show
Ignore:
Timestamp:
09/21/06 01:39:52
Author:
otsune
Message:

trap UpdatePing? sending error.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Notify/UpdatePing.pm

    r797 r1696  
    2525    for my $url (@$urls) { 
    2626        $context->log(info => "Ping " . $feed->link . " to $url"); 
    27         XMLRPC::Lite->new->proxy($url)->call('weblogUpdates.ping', @args); 
     27        eval { 
     28            XMLRPC::Lite->new->proxy($url)->call('weblogUpdates.ping', @args); 
     29        }; 
     30        if ($@) { 
     31            $context->log(error => "Error sending UpdatePing: $@"); 
     32        } 
    2833    } 
    2934}