From: Josh Roesslein Date: Mon, 10 Aug 2009 18:12:57 +0000 (-0500) Subject: Return access token when calling get_access_token() X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6150d127fdc3e2d87bb893764dac1badd6bfcdd0;p=tweepy.git Return access token when calling get_access_token() --- diff --git a/tweepy/auth.py b/tweepy/auth.py index 63ce351..4da0ce4 100644 --- a/tweepy/auth.py +++ b/tweepy/auth.py @@ -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(resp.read()) + return self.access_token except Exception, e: raise TweepError(e)