diff --git a/clearml/binding/hydra_bind.py b/clearml/binding/hydra_bind.py index 2df22ce9..6c8af3f9 100644 --- a/clearml/binding/hydra_bind.py +++ b/clearml/binding/hydra_bind.py @@ -89,7 +89,7 @@ class PatchHydra(object): if overrides and not isinstance(overrides, (list, tuple)): overrides = [overrides] overrides += ['{}={}'.format(k, v) for k, v in stored_config.items()] - overrides = ["+" + (o if o.startswith("+") and not o.startswith("++") else o) for o in overrides] + overrides = [("+" + o) if (o.startswith("+") and not o.startswith("++")) else o for o in overrides] else: # We take care of it inside the _patched_run_job pass