fix: duplicate name handle

This commit is contained in:
Rin Cat (鈴猫) 2025-03-24 04:52:01 -04:00
parent 0b892cbd60
commit 51545aa47a
Signed by: RinCat
GPG Key ID: 4B857E8B2AFC09BC

View File

@ -361,6 +361,10 @@ def start( # noqa: PLR0913
)
if "error" in emoji_data:
if emoji_data["error"]["code"] == "DUPLICATE_NAME":
logging.warning("Emoji %s already exists. Skipping.", emoji_name)
skipped_count += 1
continue
raise RuntimeError(emoji_data["error"])
success_count += 1