mirror of
https://github.com/clearml/clearml
synced 2025-01-31 00:56:57 +00:00
Black formatting
This commit is contained in:
parent
3b53ef2708
commit
cf39029cb2
@ -1,8 +1,10 @@
|
||||
import os
|
||||
import atexit
|
||||
import sys
|
||||
import os
|
||||
import signal
|
||||
import sys
|
||||
|
||||
import six
|
||||
|
||||
from ...logger import Logger
|
||||
|
||||
|
||||
@ -60,11 +62,24 @@ class ExitHooks(object):
|
||||
|
||||
if not self._org_handlers:
|
||||
if sys.platform == "win32":
|
||||
catch_signals = [signal.SIGINT, signal.SIGTERM, signal.SIGSEGV, signal.SIGABRT,
|
||||
signal.SIGILL, signal.SIGFPE]
|
||||
catch_signals = [
|
||||
signal.SIGINT,
|
||||
signal.SIGTERM,
|
||||
signal.SIGSEGV,
|
||||
signal.SIGABRT,
|
||||
signal.SIGILL,
|
||||
signal.SIGFPE,
|
||||
]
|
||||
else:
|
||||
catch_signals = [signal.SIGINT, signal.SIGTERM, signal.SIGSEGV, signal.SIGABRT,
|
||||
signal.SIGILL, signal.SIGFPE, signal.SIGQUIT]
|
||||
catch_signals = [
|
||||
signal.SIGINT,
|
||||
signal.SIGTERM,
|
||||
signal.SIGSEGV,
|
||||
signal.SIGABRT,
|
||||
signal.SIGILL,
|
||||
signal.SIGFPE,
|
||||
signal.SIGQUIT,
|
||||
]
|
||||
for c in catch_signals:
|
||||
# noinspection PyBroadException
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user