diff --git a/kickthemout.py b/kickthemout.py index bcbb9bd..7cadbcf 100644 --- a/kickthemout.py +++ b/kickthemout.py @@ -69,7 +69,12 @@ def regenOnlineIPs(): def scanNetwork(): global hostsList - hostsList = scan.scanNetwork() + try: + hostsList = scan.scanNetwork() + except: + print("\n{0}ERROR: Network scanning failed. Please check your requirements configuration.{1}\n").format(RED, END) + sys.exit(1) + regenOnlineIPs() def kickoneoff():