move error line

master
Aevann 2024-11-15 16:55:33 +02:00
parent a1d9e64a3b
commit a7a259381d
1 changed files with 2 additions and 2 deletions

View File

@ -600,10 +600,10 @@ def update_emoji(v):
updated = True updated = True
if tags and existing.tags != tags: if tags and existing.tags != tags:
existing.tags += f" {tags}"
existing.tags = delete_unnecessary_tags(existing.tags, existing.name)
if not tags_regex.fullmatch(tags): if not tags_regex.fullmatch(tags):
stop(400, "Invalid tags!") stop(400, "Invalid tags!")
existing.tags += f" {tags}"
existing.tags = delete_unnecessary_tags(existing.tags, existing.name)
updated = True updated = True
if nsfw: if nsfw: