Skip to content

Commit

Permalink
Don't report errors if you have a new follower that already got suspe…
Browse files Browse the repository at this point in the history
…nded.

This is what you get when you mention Gawker.  :/
  • Loading branch information
icculus committed Jun 12, 2016
1 parent 9d2558a commit 04f931b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions twitterlosses.php
Expand Up @@ -22,6 +22,12 @@ function cache_users(&$userobjs, $cachedir, $idsstr)
}
else if (isset($data->errors))
{
foreach ($data->errors as $err)
{
if ($err->code == 17)
return; // this means "user doesn't exist" which happens if someone following you gets suspended. Ignore it.
}

print("get users failed:\n");
foreach ($data->errors as $err)
print(" - {$err->message}\n");
Expand Down

0 comments on commit 04f931b

Please sign in to comment.