Changeset 0948fa0f
- Timestamp:
- Dec 19, 2009, 10:02:56 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 63d9de9
- Parents:
- 22fce654
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/BarnOwl/Module/Twitter/Handle.pm
r5214546 r0948fa0f 78 78 79 79 my $timeline = eval { $self->{twitter}->home_timeline({count => 1}) }; 80 warn "$@ " if $@;80 warn "$@\n" if $@; 81 81 82 82 if(!defined($timeline)) { … … 92 92 $self->{last_direct} = $self->{twitter}->direct_messages()->[0]{id}; 93 93 }; 94 warn "$@ " if $@;94 warn "$@\n" if $@; 95 95 $self->{last_direct} = 1 unless defined($self->{last_direct}); 96 96 … … 98 98 $self->{twitter}->{ua}->timeout(1); 99 99 }; 100 warn "$@ " if $@;100 warn "$@\n" if $@; 101 101 102 102 return $self; … … 135 135 136 136 my $ratelimit = eval { $self->{twitter}->rate_limit_status }; 137 warn "$@ " if $@;137 warn "$@\n" if $@; 138 138 unless(defined($ratelimit) && ref($ratelimit) eq 'HASH') { 139 139 # Twitter's just sucking, sleep for 5 minutes … … 160 160 161 161 my $timeline = eval { $self->{twitter}->home_timeline( { since_id => $self->{last_id} } ) }; 162 warn "$@ " if $@;162 warn "$@\n" if $@; 163 163 unless(defined($timeline) && ref($timeline) eq 'ARRAY') { 164 164 $self->twitter_error(); … … 168 168 if ($self->{cfg}->{show_mentions}) { 169 169 my $mentions = eval { $self->{twitter}->mentions( { since_id => $self->{last_id} } ) }; 170 warn "$@ " if $@;170 warn "$@\n" if $@; 171 171 unless (defined($mentions) && ref($mentions) eq 'ARRAY') { 172 172 $self->twitter_error(); … … 213 213 214 214 my $direct = eval { $self->{twitter}->direct_messages( { since_id => $self->{last_direct} } ) }; 215 warn "$@ " if $@;215 warn "$@\n" if $@; 216 216 unless(defined($direct) && ref($direct) eq 'ARRAY') { 217 217 $self->twitter_error();
Note: See TracChangeset
for help on using the changeset viewer.