Modified the base PyoidcError class such that is may contain the response/request that is under processing when the error was encountered.

This commit is contained in:
Roland Hedberg 2014-06-14 19:27:57 +02:00
parent cadc41e0ab
commit 61ca48ec83
1 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,9 @@ __author__ = 'rohe0002'
class PyoidcError(Exception):
pass
def __init__(self, errmsg, message="", *args):
Exception.__init__(self, errmsg, *args)
self.message = message
class MissingAttribute(PyoidcError):