aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/wsgiref/handlers.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/wsgiref/handlers.py')
-rw-r--r--Lib/wsgiref/handlers.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/wsgiref/handlers.py b/Lib/wsgiref/handlers.py
index 31360e58785..6623b700537 100644
--- a/Lib/wsgiref/handlers.py
+++ b/Lib/wsgiref/handlers.py
@@ -228,8 +228,7 @@ class BaseHandler:
if exc_info:
try:
if self.headers_sent:
- # Re-raise original exception if headers sent
- raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
+ raise
finally:
exc_info = None # avoid dangling circular ref
elif self.headers is not None: