From 29697ec12232d533dea49a7b0c68a3017a25eee1 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Fri, 13 Mar 2026 08:27:35 +0100 Subject: [PATCH] fix: do not update name --- src/rougail/convert/convert.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rougail/convert/convert.py b/src/rougail/convert/convert.py index 4e39e85b7..ec7b34570 100644 --- a/src/rougail/convert/convert.py +++ b/src/rougail/convert/convert.py @@ -278,7 +278,7 @@ class ParserVariable: return "family" if obj_type in self.variable_types or obj_type in self.custom_variable_types: return "variable" - msg = _("unknown type {0} for {1}").format(obj_type, path) + msg = _('unknown type "{0}" for "{1}"').format(obj_type, path) raise DictConsistencyError(msg, 43, sources) # in a leadership there is only variable if family_is_leadership: @@ -452,7 +452,7 @@ class ParserVariable: # convert to Calculation objects self.parse_parameters( path, - obj, + family_obj, sources, family_is_dynamic, typ="family", @@ -460,7 +460,7 @@ class ParserVariable: if self.load_unexist_redefine or exists in [None, True]: self.paths.add( path, - self.paths[path].model_copy(update=obj), + self.paths[path].model_copy(update=family_obj), family_is_dynamic, parent_dynamic, force=True,