exception
This commit is contained in:
parent
d34f4a16fe
commit
bb527b8d3f
1 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
option.value.set(option_bash_value)
|
||||
try:
|
||||
option.value.set(option_bash_value)
|
||||
except Exception as exc:
|
||||
print(exc)
|
||||
|
||||
|
|
Loading…
Reference in a new issue