Catch an additional networking case when attempting to detect wedges.
This commit is contained in:
parent
133224ed27
commit
e1df21f869
@ -63,8 +63,9 @@ async def async_connect(src, dest):
|
||||
# If we hit here, a packet might have been lost, so try again.
|
||||
pass
|
||||
except OSError as e:
|
||||
if e.errno == errno.EHOSTUNREACH:
|
||||
# If there is no route, no point retrying either.
|
||||
if e.errno == errno.EHOSTUNREACH or e.errno == errno.ENETUNREACH:
|
||||
# If there is no route, or we're dealing with firewall,
|
||||
# no point retrying either.
|
||||
break
|
||||
else:
|
||||
raise
|
||||
|
Binary file not shown.
BIN
wedge/triton_wedge-0.1.1.mkp
Executable file
BIN
wedge/triton_wedge-0.1.1.mkp
Executable file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user