Skip to content

Commit

Permalink
Raise KeyboardInterrupt when handling SIGINT by default
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Apr 22, 2024
1 parent a7d66ae commit 5102411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipykernel/kernelapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ def register(signum, file=sys.__stderr__, all_threads=True, chain=False, **kwarg
def sigint_handler(self, *args):
if self.kernel.shell_is_awaiting:
self.kernel.shell_interrupt.put(True)
elif self.kernel.shell_is_blocking:
else:
raise KeyboardInterrupt

def init_signal(self):
Expand Down

0 comments on commit 5102411

Please sign in to comment.