if old version of tiramisu do not load error from tiramisu
This commit is contained in:
parent
a7f470c837
commit
cfb4eb3b3c
@ -1,6 +1,6 @@
|
||||
try:
|
||||
from tiramisu.error import APIError, ValueWarning, ValueOptionError, ValueErrorWarning, PropertiesOptionError, ConfigError, display_list
|
||||
except ModuleNotFoundError:
|
||||
except (ModuleNotFoundError, ImportError):
|
||||
import weakref
|
||||
from .i18n import _
|
||||
|
||||
@ -130,7 +130,7 @@ except ModuleNotFoundError:
|
||||
if self.msg:
|
||||
return self.msg
|
||||
if self._option_bag is None:
|
||||
return "unknown error"
|
||||
return "option désactivée"
|
||||
req = self._settings.apply_requires(self._option_bag,
|
||||
True)
|
||||
# if req != {} or self._orig_opt is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user