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

master
voussoir 2017-11-23 21:58:38 -08:00
parent 64d8410977
commit be35f3bb1f
1 changed files with 1 additions and 1 deletions

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