Commit 3b644285 authored by Denis Bilenko's avatar Denis Bilenko

socket: replace 'except:' with 'except Exception:' in ssl()

parent caa053bd
......@@ -779,7 +779,7 @@ def ssl(sock, keyfile=None, certfile=None):
try:
sock.getpeername()
except:
except Exception:
# no, no connection yet
pass
else:
......
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