use six.reraise to amend the traceback

This commit is contained in:
Jonas Maurus 2014-11-12 09:50:10 +00:00
parent d0f1ff659f
commit fbc1e29c72

View File

@ -120,8 +120,8 @@ class AsyncWorker(base.Worker):
raise raise
except socket.error: except socket.error:
# If the original exception was a socket.error we delegate # If the original exception was a socket.error we delegate
# handling it to the caller (where handle() might ignore it). # handling it to the caller (where handle() might ignore it
raise six.reraise(*sys.exc_info())
except Exception: except Exception:
if resp and resp.headers_sent: if resp and resp.headers_sent:
# If the requests have already been sent, we should close the # If the requests have already been sent, we should close the