Changeset eb20731


Ignore:
Timestamp:
Sep 20, 2011, 11:15:31 PM (10 years ago)
Author:
Edward Z. Yang <ezyang@mit.edu>
Branches:
master, release-1.9
Children:
8b62088
Parents:
b49aaf8
git-author:
Edward Z. Yang <ezyang@mit.edu> (06/22/11 09:02:15)
git-committer:
Edward Z. Yang <ezyang@mit.edu> (09/20/11 23:15:31)
Message:
Suppress failed URL fetch errors.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/modules/Facebook/lib/BarnOwl/Module/Facebook/Handle.pm

    rb49aaf8 reb20731  
    144144}
    145145
    146 sub die_on_error {
    147     my $self = shift;
    148     my $error = shift;
    149 
    150     die "$error" if $error;
    151 }
    152 
    153146sub poll_facebook {
    154147    my $self = shift;
     
    178171             ->as_hashref()
    179172    };
    180     $self->die_on_error($@);
     173    if ($@) {
     174        warn "Poll failed $@";
     175        return;
     176    }
    181177
    182178    my $new_last_poll = $self->{last_poll};
Note: See TracChangeset for help on using the changeset viewer.