From: Will McCutchen Date: Tue, 16 Mar 2010 21:13:00 +0000 (-0500) Subject: Fix for UnboundLocalError in APIMethod.execute X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9a4d1c49a69d0f84a67b5897dc2647148bb7de00;p=tweepy.git Fix for UnboundLocalError in APIMethod.execute --- diff --git a/tweepy/binder.py b/tweepy/binder.py index c24a483..f0de58f 100644 --- a/tweepy/binder.py +++ b/tweepy/binder.py @@ -139,7 +139,7 @@ def bind_api(**config): conn.request(self.method, url, headers=self.headers, body=self.post_data) resp = conn.getresponse() except Exception, e: - raise TweepError('Failed to send request: %s' % e, resp) + raise TweepError('Failed to send request: %s' % e) # Exit request loop if non-retry error code if self.retry_errors: