mirror of
https://github.com/clearml/clearml
synced 2025-06-16 11:28:31 +00:00
PEP8
This commit is contained in:
parent
ca09bf2cef
commit
b1b4bf664f
@ -1,5 +1,4 @@
|
|||||||
import os
|
import os
|
||||||
from time import sleep
|
|
||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ class PatchFire:
|
|||||||
replaced_args = []
|
replaced_args = []
|
||||||
for param in PatchFire.__remote_task_params[PatchFire._section_name].values():
|
for param in PatchFire.__remote_task_params[PatchFire._section_name].values():
|
||||||
if command is not None and param.type == PatchFire._command_arg_type_template % command:
|
if command is not None and param.type == PatchFire._command_arg_type_template % command:
|
||||||
replaced_args.append("--" + param.name[len(command + PatchFire._args_sep) :])
|
replaced_args.append("--" + param.name[len(command + PatchFire._args_sep):])
|
||||||
value = PatchFire.__remote_task_params_dict[param.name]
|
value = PatchFire.__remote_task_params_dict[param.name]
|
||||||
if len(value) > 0:
|
if len(value) > 0:
|
||||||
replaced_args.append(value)
|
replaced_args.append(value)
|
||||||
|
@ -520,9 +520,9 @@ def main():
|
|||||||
exit(cli())
|
exit(cli())
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print('\nUser aborted')
|
print('\nUser aborted')
|
||||||
#except Exception as ex:
|
except Exception as ex:
|
||||||
# print('\nError: {}'.format(ex))
|
print('\nError: {}'.format(ex))
|
||||||
# exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user