if old version of tiramisu do not load error from tiramisu

This commit is contained in:
Emmanuel Garette 2019-08-02 18:22:35 +02:00
parent a7f470c837
commit cfb4eb3b3c
1 changed files with 2 additions and 2 deletions

View File

@ -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: