Commit 6d0b5478 authored by Denis Bilenko's avatar Denis Bilenko

pywsgi.py: remove unnecessary calls to sys.exc_clear()

--HG--
extra : transplant_source : L%DE%C3a%F9%07%CEh_%F5%BA%23%F9q%28M%26%85%9F%85
parent 33f1baee
......@@ -246,16 +246,14 @@ class WSGIHandler(object):
except Exception:
traceback.print_exc()
message = '%r %r' % (msg, args)
sys.exc_clear()
try:
message = '%s: %s' % (self.socket, message)
except Exception:
sys.exc_clear()
pass
try:
sys.stderr.write(message + '\n')
except Exception:
traceback.print_exc()
sys.exc_clear()
def handle_one_request(self):
if self.rfile.closed:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment