Skip to content

Commit d803a39

Browse files
author
leah.culver
committed
python lib: from ticket #16, catch OAuthError specifically when fetching the request token in the server. Thanks larlet!
git-svn-id: https://oauth.googlecode.com/svn/code/python@589 f7ae4463-c52f-0410-a7dc-93bad6e629e8
1 parent e4c006b commit d803a39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oauth/oauth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def fetch_request_token(self, oauth_request):
285285
try:
286286
# get the request token for authorization
287287
token = self._get_token(oauth_request, 'request')
288-
except:
288+
except OAuthError:
289289
# no token required for the initial token request
290290
version = self._get_version(oauth_request)
291291
consumer = self._get_consumer(oauth_request)

0 commit comments

Comments
 (0)