fix: do not raise if user_data is not present

This commit is contained in:
egarette@silique.fr 2024-11-05 08:35:25 +01:00
parent 365ab9276f
commit b7d392ad77

View file

@ -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
try:
user_data_names = rougailconfig["step.user_data"]
except PropertiesOptionError:
user_data_names = []
output_name = rougailconfig["step.output"]
# structural
rougail = Rougail(rougailconfig)