We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ac07ac7 + c37e6d4 commit d5e1563Copy full SHA for d5e1563
ner/utils.py
@@ -20,6 +20,8 @@ def tcpip4_socket(host, port):
20
finally:
21
try:
22
s.shutdown(socket.SHUT_RDWR)
23
+ except socket.error:
24
+ pass
25
except OSError:
26
pass
27
0 commit comments