Ignore:
Timestamp:
Jul 21, 2009, 10:58:05 PM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
1c45137
Parents:
82fd1e6
Message:
Actually fix error handling in the main driver.

I believe the previous "fix" prevented any handles from getting added
to the poll list.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/BarnOwl/Module/Twitter.pm

    rd748296 r39dd366  
    114114    }
    115115
     116    my $twitter_handle;
    116117    eval {
    117         my $twitter_handle = BarnOwl::Module::Twitter::Handle->new($cfg, %$twitter_args);
    118         push @twitter_handles, $twitter_handle;
    119         $default_handle = $twitter_handle if (!defined $twitter_handle && exists $cfg->{default_sender} && $cfg->{default_sender});
     118         $twitter_handle = BarnOwl::Module::Twitter::Handle->new($cfg, %$twitter_args);
    120119    };
     120    if ($@) {
     121        BarnOwl::error($@);
     122        next;
     123    }
     124    push @twitter_handles, $twitter_handle;
     125    $default_handle = $twitter_handle if (!defined $twitter_handle && exists $cfg->{default_sender} && $cfg->{default_sender});
    121126}
    122127
Note: See TracChangeset for help on using the changeset viewer.