Commit 9a4d1c49 authored by Will McCutchen's avatar Will McCutchen
Browse files

Fix for UnboundLocalError in APIMethod.execute

parent 138c6ceb
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment