Skip to content

Commit

Permalink
add signal handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jj-so committed Jan 29, 2024
1 parent 970f11a commit 00b585e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nitrokeyapp/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import signal
import sys
from contextlib import contextmanager
from types import TracebackType
Expand All @@ -10,6 +11,8 @@
from nitrokeyapp.gui import GUI
from nitrokeyapp.logger import init_logging, log_environment

signal.signal(signal.SIGINT, signal.SIG_DFL)


@contextmanager
def exception_handler(
Expand Down

0 comments on commit 00b585e

Please sign in to comment.