Skip to content

Commit fd06245

Browse files
Vladimir KontićJoão Silva
authored andcommitted
!45 handle keyboard interruption
1 parent c1b93e7 commit fd06245

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

probely/cli/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ def run(self):
3636
self._print_error_message(str(e))
3737
except ProbelyException as e:
3838
self._print_error_message(str(e))
39+
except KeyboardInterrupt:
40+
self._print_error_message("Operation cancelled by user")
3941
except Exception as e:
4042
logger.debug(
4143
"Unhandled exception: {name}: {msg}".format(

0 commit comments

Comments
 (0)