Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions libyang/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1490,8 +1490,10 @@ def _to_dnode(_dic, _schema, _parent=ffi.NULL, in_rpc_output=False):
try:
key_values.append(val.pop(k))
except KeyError as e:
raise ValueError("Missing key %s in the list" % (k)) from e

raise ValueError(
"%s: missing key %r in list element: %r"
% (s.schema_path(), k, v)
) from e
n = _create_list(_parent, module, name, key_values, in_rpc_output)
_to_dnode(val, s, n, in_rpc_output)

Expand Down
Loading