exception

This commit is contained in:
gwen 2024-09-10 16:15:28 +02:00
parent d34f4a16fe
commit bb527b8d3f

View file

@ -73,8 +73,10 @@ class RougailUserDataEnvironment:
# ValueError suivant le type
# PropertyError -> hidden ou frozen...
# pour les tests: mettre hidden à true dans le yaml
# try:
self.load_environment(option)
# except Exception as exc:
# print(exc)
def load_environment(self, option):
option_name = option.path()
# the bash variable are in upper case
@ -98,4 +100,8 @@ class RougailUserDataEnvironment:
option_bash_value = [type_obj(opt) for opt in option_bash_value]
elif type_obj:
option_bash_value = type_obj(option_bash_value)
try:
option.value.set(option_bash_value)
except Exception as exc:
print(exc)