Skip to content

Commit 6970850

Browse files
authored
Fix error when trying to call existing sigint handler which might be signal.SIG_IGN (#851)
* Fix error when trying to call existing sigint handler which might be signal.SIG_IGN * update changelog
1 parent 028a3d4 commit 6970850

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cluster_tools/Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ For upgrade instructions, please check the respective *Breaking Changes* section
1616
### Changed
1717

1818
### Fixed
19+
- Fixed `TypeError` when aborting a run that occurred under certain circumstances. [#851](https://github.com/scalableminds/webknossos-libs/pull/851)
1920

2021

2122
## [0.11.1](https://github.com/scalableminds/webknossos-libs/releases/tag/v0.11.1) - 2023-01-05

cluster_tools/cluster_tools/schedulers/cluster_executor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ def handle_kill(self, existing_sigint_handler, signum, frame):
128128
if (
129129
existing_sigint_handler # pylint: disable=comparison-with-callable
130130
!= signal.default_int_handler
131+
and callable(existing_sigint_handler) # Could also be signal.SIG_IGN
131132
):
132133
existing_sigint_handler(signum, frame)
133134

0 commit comments

Comments
 (0)