Send the full traceback with any exceptions in the queue process
This commit is contained in:
parent
bb9502ee77
commit
6007789480
2 changed files with 10 additions and 2 deletions
|
@ -31,9 +31,15 @@ class QueueFile(object):
|
|||
if isinstance(result, Exception):
|
||||
self._closed = True
|
||||
self.raised_exception = True
|
||||
|
||||
handled = False
|
||||
for handler in self._exception_handlers:
|
||||
handler(result)
|
||||
handled = True
|
||||
|
||||
if handled:
|
||||
return
|
||||
|
||||
raise result
|
||||
|
||||
self._buffer += result
|
||||
|
|
Reference in a new issue