Skip to content

Commit 415cd89

Browse files
committed
fix undefined name 'attr_space' in _decode_sub_msg()
Replace with msg_format.attr_set. Signed-off-by: David Wei <[email protected]>
1 parent f96c56f commit 415cd89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ynl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ def _decode_sub_msg(self, attr, attr_spec, search_attrs):
753753
decoded.update(subdict)
754754
else:
755755
raise Exception(
756-
f"Unknown attribute-set '{attr_space}' when decoding '{attr_spec.name}'"
756+
f"Unknown attribute-set '{msg_format.attr_set}' when decoding '{attr_spec.name}'"
757757
)
758758
return decoded
759759

0 commit comments

Comments
 (0)