From d31783043f5ef927b2115191975f164844c864fa Mon Sep 17 00:00:00 2001 From: Nicolas CROUZET - SFME/LGLS Date: Wed, 18 Mar 2020 14:29:07 +0100 Subject: [PATCH] source_dir n'existe pas pour les produits natifs --- commands/prepare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/prepare.py b/commands/prepare.py index 088edc3..66f77e0 100644 --- a/commands/prepare.py +++ b/commands/prepare.py @@ -49,7 +49,7 @@ def find_products_already_prepared(l_products): l_res = [] for p_name_p_cfg in l_products: __, prod_cfg = p_name_p_cfg - if os.path.exists(prod_cfg.source_dir): + if "source_dir" in prod_cfg and os.path.exists(prod_cfg.source_dir): l_res.append(p_name_p_cfg) return l_res -- 2.39.2