File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111
1212use vars qw( $VERSION %IRSSI) ;
1313
14- $VERSION = " 1.7.4 " ;
15- my ($REV ) = ' $Rev: 358 $' =~ / (\d +)/ ;
14+ $VERSION = " 1.7.5 " ;
15+ my ($REV ) = ' $Rev: 374 $' =~ / (\d +)/ ;
1616%IRSSI = (
1717 authors => ' Dan Boger' ,
1818 contact => ' zigdon@gmail.com' ,
2121 . ' Can optionally set your bitlbee /away message to same' ,
2222 license => ' GNU GPL v2' ,
2323 url => ' http://tinyurl.com/twirssi' ,
24- changed => ' $Date: 2009-01-13 21:02:17 -0800 (Tue, 13 Jan 2009) $' ,
24+ changed => ' $Date: 2009-01-19 23:31:12 -0800 (Mon, 19 Jan 2009) $' ,
2525);
2626
2727my $window ;
@@ -597,8 +597,11 @@ sub do_updates {
597597
598598 unless ( ref $tweets ) {
599599 if ( $obj -> can(" get_error" ) ) {
600+ my $error ;
601+ eval { $error = JSON::Any-> jsonToObj( $obj -> get_error() ) };
602+ if ($@ ) { $error = $obj -> get_error() }
600603 print $fh " type:debug API Error during friends_timeline call: " ,
601- JSON::Any -> jsonToObj( $obj -> get_error() ), " Aborted.\n " ;
604+ " $error Aborted.\n " ;
602605 } else {
603606 print $fh
604607 " type:debug API Error during friends_timeline call. Aborted.\n " ;
You can’t perform that action at this time.
0 commit comments