From ef6792de90bb40192adeaddae6c552ec52fe25f0 Mon Sep 17 00:00:00 2001 From: iaacornus Date: Mon, 6 Jun 2022 21:44:03 +0800 Subject: [PATCH] fixed exception handling, removed the connection error --- cli.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cli.py b/cli.py index 4c6179d..3b479a0 100644 --- a/cli.py +++ b/cli.py @@ -68,11 +68,8 @@ def program_options(): else: print_substep("Error occured!", style="bold red") raise SystemExit() - except ( - ConnectionError, - KeyboardInterrupt, - ): - print_substep("Error occured!", style="bold red") + except KeyboardInterrupt: + print_substep("\nOperation Aborted!", style="bold red") if __name__ == "__main__":