fix: duplicate name handle
This commit is contained in:
parent
0b892cbd60
commit
51545aa47a
@ -361,6 +361,10 @@ def start( # noqa: PLR0913
|
|||||||
)
|
)
|
||||||
|
|
||||||
if "error" in emoji_data:
|
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"])
|
raise RuntimeError(emoji_data["error"])
|
||||||
|
|
||||||
success_count += 1
|
success_count += 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user