Skip to content

Commit

Permalink
Fix. handler isn't a keyword arg.
Browse files Browse the repository at this point in the history
  • Loading branch information
p4irin committed Apr 25, 2024
1 parent 01847aa commit 8008e2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ubitlogger/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def _exit_gracefully(signum: int, frame) -> None:
print(f"frame: {frame}")
exit(1)

signal(SIGINT, handler=_exit_gracefully)
signal(SIGTERM, handler=_exit_gracefully)
signal(SIGINT, _exit_gracefully)
signal(SIGTERM, _exit_gracefully)

_stop_event = Event()

Expand Down

0 comments on commit 8008e2b

Please sign in to comment.