Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

temporarily revert get_request_token error handling

  • Loading branch information...
commit e14d4de4d4f832263cb3a6bdec7fdb4e3b646316 1 parent 098e9e3
@maxcountryman maxcountryman authored
Showing with 6 additions and 3 deletions.
  1. +1 −1  rauth/__init__.py
  2. +5 −2 rauth/service.py
View
2  rauth/__init__.py
@@ -6,4 +6,4 @@
'''
-__version__ = '0.4.9'
+__version__ = '0.4.10'
View
7 rauth/service.py
@@ -419,8 +419,11 @@ def get_request_token(self, method='GET', **kwargs):
self.request_token_url,
**kwargs)
- if not response.ok:
- return response.content
+ # TODO: use the following instead
+ #if not response.ok:
+ # return response.content
+
+ response.raise_for_status()
data = parse_utf8_qsl(response.content)
return data['oauth_token'], data['oauth_token_secret']
Please sign in to comment.
Something went wrong with that request. Please try again.