mirror of
https://github.com/k4m4/kickthemout.git
synced 2024-11-24 05:54:24 +01:00
Fix keyboard exception in initial scanning process
This commit is contained in:
parent
3fa1955ce4
commit
7930fefb73
@ -257,12 +257,15 @@ def scanNetwork():
|
|||||||
# call scanning function from scan.py
|
# call scanning function from scan.py
|
||||||
hostsList = scan.scanNetwork(getDefaultInterface(True))
|
hostsList = scan.scanNetwork(getDefaultInterface(True))
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
shutdown()
|
||||||
except:
|
except:
|
||||||
print("\n\n{}ERROR: Network scanning failed. Please check your requirements configuration.{}".format(RED, END))
|
print("\n\n{}ERROR: Network scanning failed. Please check your requirements configuration.{}".format(RED, END))
|
||||||
print("\n{}If you still cannot resolve this error, please submit an issue here:\n\t{}https://github.com/k4m4/kickthemout/issues\n\n{}Details: {}{}{}".format(RED, BLUE, RED, GREEN, str(sys.exc_info()[1]), END))
|
print("\n{}If you still cannot resolve this error, please submit an issue here:\n\t{}https://github.com/k4m4/kickthemout/issues\n\n{}Details: {}{}{}".format(RED, BLUE, RED, GREEN, str(sys.exc_info()[1]), END))
|
||||||
os._exit(1)
|
os._exit(1)
|
||||||
regenOnlineIPs()
|
try:
|
||||||
|
regenOnlineIPs()
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
shutdown()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user