Skip to content

Commit

Permalink
Use value to check for duplicate metadata property in the visualizati…
Browse files Browse the repository at this point in the history
…on graph (#30)

Co-authored-by: Cristiano Köhler <[email protected]>
  • Loading branch information
kohlerca and Cristiano Köhler authored Oct 26, 2024
1 parent 6694fd1 commit 5d1e8ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alpaca/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _add_attribute(data, attr_name, attr_type, attr_value, strip_namespace):
if not strip_namespace:
attr_name = f"{ATTR_NAMES[attr_type]}:{attr_name}"

if attr_name in data:
if attr_name in data and data[attr_name] != attr_value:
raise ValueError(
"Duplicate property values. Make sure to include the namespaces!")
data[attr_name] = attr_value
Expand Down

0 comments on commit 5d1e8ef

Please sign in to comment.