Commit 6150d127 authored by Josh Roesslein's avatar Josh Roesslein
Browse files

Return access token when calling get_access_token()

parent 37129ca9
......@@ -81,6 +81,7 @@ class OAuthHandler(AuthHandler):
# send request
resp = urlopen(Request(self.ACCESS_TOKEN_URL, headers=request.to_header()))
self.access_token = oauth.OAuthToken.from_string(
return self.access_token
except Exception, e:
raise TweepError(e)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment