Commit 9dd3cbc9 authored by Denis Bilenko's avatar Denis Bilenko

pywsgi: never raise in "finally" section

parent f0c7c167
...@@ -403,9 +403,8 @@ def server(sock, site, log=None, environ=None, max_size=None, max_http_version=D ...@@ -403,9 +403,8 @@ def server(sock, site, log=None, environ=None, max_size=None, max_http_version=D
finally: finally:
try: try:
sock.close() sock.close()
except socket.error, e: except Exception:
if e[0] != errno.EPIPE: pass
traceback.print_exc()
# compatibilty with wsgi module, for tests # compatibilty with wsgi module, for tests
......
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