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.
|
# If we hit here, a packet might have been lost, so try again.
|
||||||
pass
|
pass
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.errno == errno.EHOSTUNREACH:
|
if e.errno == errno.EHOSTUNREACH or e.errno == errno.ENETUNREACH:
|
||||||
# If there is no route, no point retrying either.
|
# If there is no route, or we're dealing with firewall,
|
||||||
|
# no point retrying either.
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
raise
|
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