mirror of
https://github.com/clearml/clearml
synced 2025-02-07 21:33:25 +00:00
Flake8/PEP8
This commit is contained in:
parent
f3d42d0a53
commit
b70b60868e
@ -1,10 +1,10 @@
|
|||||||
try:
|
try:
|
||||||
from click.core import Command, Option, Argument, OptionParser, Group, Context
|
from click.core import Command, Option, Argument, Group, Context # noqa
|
||||||
from click.types import BoolParamType
|
from click.types import BoolParamType # noqa
|
||||||
except ImportError:
|
except ImportError:
|
||||||
Command = None
|
Command = None
|
||||||
|
|
||||||
from .frameworks import _patched_call
|
from .frameworks import _patched_call # noqa
|
||||||
from ..config import running_remotely, get_remote_task_id
|
from ..config import running_remotely, get_remote_task_id
|
||||||
from ..utilities.dicts import cast_str_to_bool
|
from ..utilities.dicts import cast_str_to_bool
|
||||||
|
|
||||||
|
@ -2897,10 +2897,10 @@ class Task(_Task):
|
|||||||
return
|
return
|
||||||
# shutdown will clear the main, so we have to store it before.
|
# shutdown will clear the main, so we have to store it before.
|
||||||
# is_main = self.is_main_task()
|
# is_main = self.is_main_task()
|
||||||
# fix debugger signal in the middle
|
# fix debugger signal in the middle, catch everything
|
||||||
try:
|
try:
|
||||||
self.__shutdown()
|
self.__shutdown()
|
||||||
except:
|
except: # noqa
|
||||||
pass
|
pass
|
||||||
# In rare cases we might need to forcefully shutdown the process, currently we should avoid it.
|
# In rare cases we might need to forcefully shutdown the process, currently we should avoid it.
|
||||||
# if is_main:
|
# if is_main:
|
||||||
|
Loading…
Reference in New Issue
Block a user