Skip to content

Commit

Permalink
Priorotize user-defined prefix_map (#412)
Browse files Browse the repository at this point in the history
Fixes #411
  • Loading branch information
hrshdhgd committed Sep 5, 2023
1 parent a23c4dd commit 3a54df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sssom/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def add_built_in_prefixes_to_prefix_map(
prefix_map = builtinmap
else:
for k, v in builtinmap.items():
if k not in prefix_map:
if k not in prefix_map and v not in prefix_map.values():
prefix_map[k] = v
elif builtinmap[k] != prefix_map[k]:
raise ValueError(
Expand Down

0 comments on commit 3a54df0

Please sign in to comment.