Fix Tag.rename from raising TagExists for old instead of desired new.

This commit is contained in:
voussoir 2017-11-23 21:58:38 -08:00
parent 64d8410977
commit be35f3bb1f

View file

@ -1251,7 +1251,7 @@ class Tag(ObjectBase, GroupableMixin):
except exceptions.NoSuchTag:
pass
else:
raise exceptions.TagExists(existing_tag)
raise exceptions.TagExists(new_name)
self._cached_qualified_name = None
self.photodb._cached_frozen_children = None