elif pluput == "stop": try: if atks == 0: print("no attacks running") main() else: attack = False print(" [\033[34mplu\033[00m] stoped all running attacks") while not attack: if atks == 0: attack = True else: main() try: clear = "clear" os.system(clear) print(banner) main() except KeyboardInterrupt: print ("\n [\033[34mplu\033[00m] CTRL has been pressed") main()
every try
in python need to have a exception
elif pluput == "stop":
try:
if atks == 0:
print("no attacks running")
main()
else:
attack = False
print(" [\033[34mplu\033[00m] stoped all running attacks")
while not attack:
if atks == 0:
attack = True
except:
print("some error")
else:
main()
try:
clear = "clear"
os.system(clear)
print(banner)
main()
except KeyboardInterrupt:
print ("\n [\033[34mplu\033[00m] CTRL has been pressed")
main()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.