From 234bc26f1ba55c489a56977e80d4989ce47c2dc6 Mon Sep 17 00:00:00 2001 From: Michal Stolarczyk Date: Tue, 25 Aug 2020 15:14:26 -0400 Subject: [PATCH] catch a case when no output_dir is provided; see #286 --- looper/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/looper/utils.py b/looper/utils.py index eeee58de1..ce9787cff 100644 --- a/looper/utils.py +++ b/looper/utils.py @@ -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: