From 6150d127fdc3e2d87bb893764dac1badd6bfcdd0 Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Mon, 10 Aug 2009 13:12:57 -0500 Subject: [PATCH] Return access token when calling get_access_token() --- tweepy/auth.py | 1 + 1 file changed, 1 insertion(+) 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) -- 2.25.1