_exceptions.py
branchstable
changeset 4911 898c35be5873
parent 4270 189e4f5279e9
child 5032 e3fa27fc0d9a
--- a/_exceptions.py	Tue Mar 16 12:34:29 2010 +0100
+++ b/_exceptions.py	Tue Mar 16 12:40:59 2010 +0100
@@ -49,7 +49,11 @@
 
 class AuthenticationError(ConnectionError):
     """raised when a bad connection id is given or when an attempt to establish
-    a connection failed"""
+    a connection failed
+    """
+    def __init__(self, *args, **kwargs):
+        super(AuthenticationError, self).__init__(*args)
+        self.__dict__.update(kwargs)
 
 class BadConnectionId(ConnectionError):
     """raised when a bad connection id is given or when an attempt to establish