From 6916751bf7d7107f5dce709c02ae8e60c46e1176 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Tue, 18 Mar 2014 12:37:15 +0100 Subject: Python 3: use six.reraise() to re-raise an exception with the traceback --- paste/modpython.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'paste/modpython.py') diff --git a/paste/modpython.py b/paste/modpython.py index a3fef55..692a94f 100644 --- a/paste/modpython.py +++ b/paste/modpython.py @@ -49,6 +49,7 @@ This module highly based on Robert Brewer's, here: http://projects.amor.org/misc/svn/modpython_gateway.py """ +import six import traceback try: @@ -176,7 +177,7 @@ class Handler(object): if exc_info: try: if self.started: - raise exc_info[0], exc_info[1], exc_info[2] + six.reraise(exc_info[0], exc_info[1], exc_info[2]) finally: exc_info = None -- cgit v1.2.1