Set up initial testing framework for network module

This commit is contained in:
nepoz 2021-07-08 12:10:46 -05:00
parent 3f524ab371
commit 2100a7cfdb
2 changed files with 66 additions and 1 deletions

View file

@ -33,7 +33,7 @@ class Module(core.module.Module):
try:
socket.create_connection(("1.1.1.1", 53))
self.__is_connected = True
except OSError:
except:
self.__is_connected = False
# Attempt to extract a valid network interface device