Skip to content

Commit

Permalink
added servicefail for what seems to happen when twitter is down
Browse files Browse the repository at this point in the history
  • Loading branch information
Oli Kingshott committed Jul 9, 2010
1 parent ff81955 commit 5479cc4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion oauth_access/access.py
Expand Up @@ -98,10 +98,12 @@ def fetch_unauthorized_token(self):
)
try:
return oauth.Token.from_string(content)
except KeyError, e:
except KeyError e:
if e.args[0] == "oauth_token":
raise ServiceFail()
raise
except ValueError:
raise ServiceFail()

@property
def callback_url(self):
Expand Down

0 comments on commit 5479cc4

Please sign in to comment.