This commit is contained in:
allegroai 2022-04-27 17:16:48 +03:00
parent ca09bf2cef
commit b1b4bf664f
3 changed files with 4 additions and 5 deletions

View File

@ -1,5 +1,4 @@
import os
from time import sleep
import six

View File

@ -134,7 +134,7 @@ class PatchFire:
replaced_args = []
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:
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]
if len(value) > 0:
replaced_args.append(value)

View File

@ -520,9 +520,9 @@ def main():
exit(cli())
except KeyboardInterrupt:
print('\nUser aborted')
#except Exception as ex:
# print('\nError: {}'.format(ex))
# exit(1)
except Exception as ex:
print('\nError: {}'.format(ex))
exit(1)
if __name__ == '__main__':