fix: do not raise if user_data is not present
This commit is contained in:
parent
365ab9276f
commit
b7d392ad77
1 changed files with 5 additions and 2 deletions
|
@ -20,7 +20,7 @@ from tiramisu_cmdline_parser import TiramisuCmdlineParser
|
||||||
from tiramisu import Config
|
from tiramisu import Config
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from rougail import Rougail
|
from rougail import Rougail, PropertiesOptionError
|
||||||
from rougail.config import get_rougail_config
|
from rougail.config import get_rougail_config
|
||||||
from rougail.update import RougailUpgrade
|
from rougail.update import RougailUpgrade
|
||||||
from rougail.utils import load_modules
|
from rougail.utils import load_modules
|
||||||
|
@ -46,7 +46,10 @@ def _main():
|
||||||
if rougailconfig["upgrade"]:
|
if rougailconfig["upgrade"]:
|
||||||
RougailUpgrade(rougailconfig=rougailconfig).run()
|
RougailUpgrade(rougailconfig=rougailconfig).run()
|
||||||
return
|
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"]
|
output_name = rougailconfig["step.output"]
|
||||||
# structural
|
# structural
|
||||||
rougail = Rougail(rougailconfig)
|
rougail = Rougail(rougailconfig)
|
||||||
|
|
Loading…
Reference in a new issue