diff --git a/tiramisu/error.py b/tiramisu/error.py index f278148..46eace1 100644 --- a/tiramisu/error.py +++ b/tiramisu/error.py @@ -118,11 +118,12 @@ class PropertiesOptionError(AttributeError): self._name, prop_msg, msg)) - self.msg = str(_('cannot access to {0} "{1}" because has {2} {3}' - '').format(self._opt_type, - self._name, - prop_msg, - msg)) + else: + self.msg = str(_('cannot access to {0} "{1}" because has {2} {3}' + '').format(self._opt_type, + self._name, + prop_msg, + msg)) del self._path, self._index, self._requires, self._opt_type, self._name, self._config_bag del self._settings, self._orig_opt return self.msg diff --git a/tiramisu/setting.py b/tiramisu/setting.py index 83e39c8..82f2da9 100644 --- a/tiramisu/setting.py +++ b/tiramisu/setting.py @@ -518,11 +518,11 @@ class Settings(object): # transitive action, add action if operator != 'and': if readable: - for msg in self.apply_requires(err.path, - err.requires, - err.index, + for msg in self.apply_requires(err._path, + err._requires, + err._index, True, - err.config_bag).values(): + err._config_bag).values(): calc_properties.setdefault(action, []).extend(msg) else: calc_properties.add(action)