Commit 313e93df authored by Denis Bilenko's avatar Denis Bilenko

pywsgi: rename 'e' to 'ex' and call exc_clear()

parent d9cf658a
......@@ -151,10 +151,10 @@ class WSGIHandler(BaseHTTPServer.BaseHTTPRequestHandler):
self.application = self.server.application
try:
self.handle_one_response()
except socket.error, e:
except socket.error, ex:
# Broken pipe, connection reset by peer
if e[0] in (errno.EPIPE, errno.ECONNRESET):
pass
if ex[0] in (errno.EPIPE, errno.ECONNRESET):
sys.exc_clear()
else:
raise
......
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