From 9a4d1c49a69d0f84a67b5897dc2647148bb7de00 Mon Sep 17 00:00:00 2001 From: Will McCutchen Date: Tue, 16 Mar 2010 16:13:00 -0500 Subject: [PATCH] Fix for UnboundLocalError in APIMethod.execute --- tweepy/binder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.25.1