diff --git a/nsq/nsq.py b/nsq/nsq.py index c319999..59f5d4a 100644 --- a/nsq/nsq.py +++ b/nsq/nsq.py @@ -28,6 +28,9 @@ def __init__(self, msg, error=None): def __str__(self): return 'SendError: %s (%s)' % (self.msg, self.error) + + def __repr__(self): + return 'SendError: %s (%s)' % (self.msg, self.error) class ConnectionClosedError(Error):