Fix Tag.rename from raising TagExists for old instead of desired new.
parent
64d8410977
commit
be35f3bb1f
|
@ -1251,7 +1251,7 @@ class Tag(ObjectBase, GroupableMixin):
|
||||||
except exceptions.NoSuchTag:
|
except exceptions.NoSuchTag:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
raise exceptions.TagExists(existing_tag)
|
raise exceptions.TagExists(new_name)
|
||||||
|
|
||||||
self._cached_qualified_name = None
|
self._cached_qualified_name = None
|
||||||
self.photodb._cached_frozen_children = None
|
self.photodb._cached_frozen_children = None
|
||||||
|
|
Loading…
Reference in New Issue