Need to check against self, since we may add new conflicts as we go
This commit is contained in:
parent
f5d1fd2c29
commit
e87b13c4eb
@ -537,7 +537,7 @@ class MutableLibrary(Library, MutableMapping[str, 'Pattern'], metaclass=ABCMeta)
|
||||
temp = WrapLibrary(copy.deepcopy(dict(other))) # TODO maybe add a `mutate` arg? Might want to keep the same patterns
|
||||
rename_map = {}
|
||||
for old_name in temp:
|
||||
if old_name in duplicates:
|
||||
if old_name in self:
|
||||
new_name = rename_theirs(self, old_name)
|
||||
if new_name in self:
|
||||
raise LibraryError(f'Unresolved duplicate key encountered in library merge: {old_name} -> {new_name}')
|
||||
|
Loading…
Reference in New Issue
Block a user