get information with default attribute when information is set to an option

This commit is contained in:
2019-10-16 07:42:18 +02:00
parent ba5cc57166
commit a7e4399ae5
2 changed files with 16 additions and 1 deletions

View File

@@ -464,7 +464,7 @@ class TiramisuOptionInformation(CommonTiramisuOption):
path = self._option_bag.path
values = self._option_bag.config_bag.context.cfgimpl_get_values()
try:
return values.get_information(key, default, path=path)
return values.get_information(key, path=path)
except ValueError:
option = self._option_bag.option
return option.impl_get_information(key, default)