Skip to content

Commit

Permalink
tiny code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Aug 11, 2015
1 parent 5639d82 commit a087eaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/appier/exceptions.py
Expand Up @@ -227,5 +227,6 @@ class OAuthAccessError(APIError):

def __init__(self, *args, **kwargs):
self.original = kwargs.get("original", None)
if self.original: kwargs["message"] = self.original.message
if self.original and hasattr(self.original, "message"):
kwargs["message"] = self.original.message
APIError.__init__(self, *args, **kwargs)

0 comments on commit a087eaf

Please sign in to comment.