Commit 16f75e94 authored by Romain Courteaud's avatar Romain Courteaud

Network: do not crash if the bot has no network

parent c5ee8ceb
......@@ -49,6 +49,9 @@ def isTcpPortOpen(db, ip, port, status_id):
if e.errno == errno.EHOSTUNREACH:
# OSError: [Errno 113] No route to host
state = "filtered"
elif e.errno == errno.ENETUNREACH:
# OSError: [Errno 101] Network is unreachable
state = "unreachable"
else:
raise
......
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