Skip to content

Commit

Permalink
Catch suspended twitter account exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
richcollins committed Oct 2, 2010
1 parent e26f946 commit 0868ca8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/Twitter/io/TwitterResponse.io
Expand Up @@ -58,6 +58,8 @@ TwitterResponse := Object clone do(
e setIsBlockedOrSuspendedOrProtected(true)
) elseif(errorMessage containsSeq("This account is currently suspended")) then(
e setIsSuspended(true)
) elseif(errorMessage containsSeq("User has been suspended")) then(
e setIsSuspended(true)
) elseif(errorMessage containsSeq("this account has been suspended")) then(
e setIsSuspended(true)
) elseif(errorMessage containsSeq("You are not friends with the specified user")) then(
Expand Down

0 comments on commit 0868ca8

Please sign in to comment.