Make the exceptions Pickleable, stop Celery popping due to bad Exceptions

This commit is contained in:
2012-08-14 20:47:50 +01:00
parent d6e1c4f7fe
commit a70f643da6
2 changed files with 2 additions and 0 deletions

View File

@@ -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