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
finally:
try:
sock.close()
except socket.error, e:
if e[0] != errno.EPIPE:
traceback.print_exc()
except Exception:
pass
# 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