Skip to content

Commit 6f729e2

Browse files
author
Dan Boger
committedJan 20, 2009
1.7.5 - r374 - Minor fix, avoid another unevaled call to JSON::Any
1 parent 4089d45 commit 6f729e2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed
 

‎twirssi.pl

+7-4
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
use 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',
@@ -21,7 +21,7 @@
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

2727
my $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";

0 commit comments

Comments
 (0)
Please sign in to comment.