From b7d392ad77eee3f9bd9b819b109b81c3bcf7be54 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Tue, 5 Nov 2024 08:35:25 +0100 Subject: [PATCH] fix: do not raise if user_data is not present --- src/rougail/cli/__main__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/rougail/cli/__main__.py b/src/rougail/cli/__main__.py index 76c7fc6..7a7f892 100644 --- a/src/rougail/cli/__main__.py +++ b/src/rougail/cli/__main__.py @@ -20,7 +20,7 @@ from tiramisu_cmdline_parser import TiramisuCmdlineParser from tiramisu import Config from pathlib import Path -from rougail import Rougail +from rougail import Rougail, PropertiesOptionError from rougail.config import get_rougail_config from rougail.update import RougailUpgrade from rougail.utils import load_modules @@ -46,7 +46,10 @@ def _main(): if rougailconfig["upgrade"]: RougailUpgrade(rougailconfig=rougailconfig).run() return - user_data_names = rougailconfig["step.user_data"] + try: + user_data_names = rougailconfig["step.user_data"] + except PropertiesOptionError: + user_data_names = [] output_name = rougailconfig["step.output"] # structural rougail = Rougail(rougailconfig)