fixed exception handling, removed the connection error

pull/280/head
iaacornus 3 years ago
parent f7d5b6cfe4
commit ef6792de90
No known key found for this signature in database
GPG Key ID: 281739AE7252598C

@ -68,11 +68,8 @@ def program_options():
else: else:
print_substep("Error occured!", style="bold red") print_substep("Error occured!", style="bold red")
raise SystemExit() raise SystemExit()
except ( except KeyboardInterrupt:
ConnectionError, print_substep("\nOperation Aborted!", style="bold red")
KeyboardInterrupt,
):
print_substep("Error occured!", style="bold red")
if __name__ == "__main__": if __name__ == "__main__":

Loading…
Cancel
Save