Skip to content

Commit

Permalink
Better exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Jan 20, 2015
1 parent c05220a commit 75e8467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/create_lists
Expand Up @@ -152,8 +152,8 @@ foreach my $con ($con_rs->all) {
my $err = $@;
$logger->logdie($err)
unless blessed $err and $err->isa('Net::Twitter::Error');
$logger->logwarn($err->code . ': ' . $err->error);
if ($err->code == 429 or $err->code == 403) {
$logger->logwarn($err->code . ': ' . $err->error);
$logger->logdie('Rate limit exceeded');
} else {
next;
Expand Down

0 comments on commit 75e8467

Please sign in to comment.