Skip to content

Commit

Permalink
catch a case when no output_dir is provided; see #286
Browse files Browse the repository at this point in the history
  • Loading branch information
stolarczyk committed Aug 25, 2020
1 parent b2df187 commit 234bc26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion looper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def enrich_args_via_cfg(parser_args, aux_parser):
if dest in cli_args:
x = getattr(cli_args, dest)
r = convert_value(x) if isinstance(x, str) else x
elif dest in cfg_args_all:
elif cfg_args_all is not None and dest in cfg_args_all:
if isinstance(cfg_args_all[dest], list):
r = [convert_value(i) for i in cfg_args_all[dest]]
else:
Expand Down

0 comments on commit 234bc26

Please sign in to comment.