Fix for UnboundLocalError in APIMethod.execute
authorWill McCutchen <will@keyingredient.com>
Tue, 16 Mar 2010 21:13:00 +0000 (16:13 -0500)
committerWill McCutchen <will@keyingredient.com>
Tue, 16 Mar 2010 21:13:00 +0000 (16:13 -0500)
tweepy/binder.py

index c24a48322c1c3277da9660d90bd3fa7da4f2b6e4..f0de58f7a9f116289c9c5a3c7ed9d05c09e9876a 100644 (file)
@@ -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: