Commits

Sebastian Rahlf committed f885a75

Bugfix: Keep original exception arguments (see #31).

  • Participants
  • Parent commits a767ddf

Comments (0)

Files changed (1)

amazonproduct/errors.py

     Generic AWS error message.
     """
     def __init__(self, *args, **kwargs):
+        Exception.__init__(self)
+        self.args = args
         self.code = kwargs.pop('code', None)
         self.msg = kwargs.pop('msg', None)
         self.xml = kwargs.pop('xml', None)
-        Exception.__init__(self)
     def __str__(self): # pragma: no cover
         if self.code is not None:
             return '%(code)s: %(msg)s' % self.__dict__