From 415cd89708319d9ec12a56a6f5835c3d1bcd2122 Mon Sep 17 00:00:00 2001 From: David Wei Date: Tue, 25 Nov 2025 12:55:56 -0800 Subject: [PATCH] fix undefined name 'attr_space' in _decode_sub_msg() Replace with msg_format.attr_set. Signed-off-by: David Wei --- lib/ynl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ynl.py b/lib/ynl.py index 363f029..44a5af4 100644 --- a/lib/ynl.py +++ b/lib/ynl.py @@ -753,7 +753,7 @@ def _decode_sub_msg(self, attr, attr_spec, search_attrs): decoded.update(subdict) else: raise Exception( - f"Unknown attribute-set '{attr_space}' when decoding '{attr_spec.name}'" + f"Unknown attribute-set '{msg_format.attr_set}' when decoding '{attr_spec.name}'" ) return decoded