mirror of
https://github.com/clearml/clearml
synced 2025-03-03 10:42:00 +00:00
Fix PyCharm debugger Keyboard interrupt set Task as failed (instead of aborted)
This commit is contained in:
parent
b64c43ba54
commit
07fca61572
@ -2915,7 +2915,8 @@ class Task(_Task):
|
||||
pass
|
||||
|
||||
# only if we have an exception (and not ctrl-break) or signal is not SIGTERM / SIGINT
|
||||
if (is_exception and not isinstance(self.__exit_hook.exception, KeyboardInterrupt)) \
|
||||
if (is_exception and not isinstance(is_exception, KeyboardInterrupt)
|
||||
and is_exception != KeyboardInterrupt) \
|
||||
or (not self.__exit_hook.remote_user_aborted and
|
||||
self.__exit_hook.signal not in (None, 2, 15)):
|
||||
task_status = (
|
||||
|
Loading…
Reference in New Issue
Block a user