mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-13 22:32:15 +00:00
Make the exceptions Pickleable, stop Celery popping due to bad Exceptions
This commit is contained in:
@@ -22,6 +22,7 @@ class APIAccessException(Exception):
|
||||
|
||||
def __init__(self, msg):
|
||||
self.msg = msg
|
||||
Exception.__init__(self, msg)
|
||||
|
||||
def __str__(self):
|
||||
return "An error was encountered while accessing the EVE API: %s" % self.msg
|
||||
|
||||
@@ -4,6 +4,7 @@ class DocumentRetrievalError(Exception):
|
||||
"""
|
||||
def __init__(self, value):
|
||||
self.value = value
|
||||
Exception.__init__(self, value)
|
||||
|
||||
def __str__(self):
|
||||
return self.__doc__ % self.value
|
||||
|
||||
Reference in New Issue
Block a user