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