Skip to content

Commit

Permalink
Merge pull request #2 from FHNW/2.0.0.dev-Fix-TermIdentifier-Bug
Browse files Browse the repository at this point in the history
Prevent from overriding TermIdentifier with new Id if duplicate entry is added.
  • Loading branch information
karalics authored Sep 17, 2019
2 parents 3a22bfc + 8944d13 commit 93ca2d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/collective/taxonomy/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ def fix(path):
for key, value in items:
if key in seen:
logger.warning("Duplicate key entry: %r" % (key, ))
continue

seen.add(key)
update = key in tree
Expand Down

0 comments on commit 93ca2d7

Please sign in to comment.