summaryrefslogtreecommitdiffstats
path: root/Lib/wsgiref
diff options
context:
space:
mode:
authorOleg Iarygin <oleg@arhadthedev.net>2022-03-30 12:28:20 (GMT)
committerGitHub <noreply@github.com>2022-03-30 12:28:20 (GMT)
commita03a09e068435f47d02649dda93988dc44ffaaf1 (patch)
tree864a523218399cc068ec68567359e616740bac9b /Lib/wsgiref
parentf08a191882f75bb79d42a49039892105b2212fb9 (diff)
downloadcpython-a03a09e068435f47d02649dda93988dc44ffaaf1.zip
cpython-a03a09e068435f47d02649dda93988dc44ffaaf1.tar.gz
cpython-a03a09e068435f47d02649dda93988dc44ffaaf1.tar.bz2
Replace with_traceback() with exception chaining and reraising (GH-32074)
Diffstat (limited to 'Lib/wsgiref')
-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 31360e5..6623b70 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: