Commit 6339f7cb authored by Denis Bilenko's avatar Denis Bilenko

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

parent 11297e06
......@@ -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