Skip to content
Snippets Groups Projects
Commit e2e00e84 authored by Matt Traudt's avatar Matt Traudt
Browse files

Catch another socks exception gracefully

parent bfba609d
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ def socket_connect(s, addr, port):
try:
s.connect((addr, port))
print('connected to', addr, port, 'via', s.fileno())
except socks.GeneralProxyError as e:
except (socks.GeneralProxyError, socks.ProxyConnectionError) as e:
print(e)
return False
return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment