Skip to content

Commit 0075c6d

Browse files
committed
Fixed the text of the KeyboardInterrupt Exception that is getting raised within the SIGINT handler
1 parent c319cd3 commit 0075c6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ def sigint_handler(self, signum, frame):
14961496
pipe_proc.terminate()
14971497

14981498
# Re-raise a KeyboardInterrupt so other parts of the code can catch it
1499-
raise KeyboardInterrupt("Got a keyboard interrupt within a Python script")
1499+
raise KeyboardInterrupt("Got a keyboard interrupt")
15001500

15011501
def preloop(self):
15021502
"""Hook method executed once when the cmdloop() method is called."""

0 commit comments

Comments
 (0)