Commit 2396a552 authored by inactivist's avatar inactivist
Browse files

Proposed fix for issue #193. Call base Exception constructor.

parent 0fd129e8
......@@ -8,6 +8,7 @@ class TweepError(Exception):
def __init__(self, reason, response=None):
self.reason = unicode(reason)
self.response = response
Exception.__init__(self, reason)
def __str__(self):
return self.reason
......
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