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:
|
try:
|
||||||
from tiramisu.error import APIError, ValueWarning, ValueOptionError, ValueErrorWarning, PropertiesOptionError, ConfigError, display_list
|
from tiramisu.error import APIError, ValueWarning, ValueOptionError, ValueErrorWarning, PropertiesOptionError, ConfigError, display_list
|
||||||
except ModuleNotFoundError:
|
except (ModuleNotFoundError, ImportError):
|
||||||
import weakref
|
import weakref
|
||||||
from .i18n import _
|
from .i18n import _
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ except ModuleNotFoundError:
|
||||||
if self.msg:
|
if self.msg:
|
||||||
return self.msg
|
return self.msg
|
||||||
if self._option_bag is None:
|
if self._option_bag is None:
|
||||||
return "unknown error"
|
return "option désactivée"
|
||||||
req = self._settings.apply_requires(self._option_bag,
|
req = self._settings.apply_requires(self._option_bag,
|
||||||
True)
|
True)
|
||||||
# if req != {} or self._orig_opt is not None:
|
# if req != {} or self._orig_opt is not None:
|
||||||
|
|
Loading…
Reference in New Issue