Commit 70b9af56 authored by Pavel Spirek's avatar Pavel Spirek

Possible uncatched exception when POSTing data

parent b0cf9356
......@@ -598,6 +598,9 @@ class BaseDatastore:
sn = n.schema_node # type: InternalNode
member_sn = sn.get_child(input_member_name)
if member_sn is None:
raise ValueError("Received json object contains unknown member")
# Check if target member already exists
if sn.ns == member_sn.ns:
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment