Flake8/PEP8

This commit is contained in:
allegroai 2021-07-23 15:51:49 +03:00
parent f3d42d0a53
commit b70b60868e
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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: