diff --git a/src/dpy_appemojis/dpy_appemojis.py b/src/dpy_appemojis/dpy_appemojis.py index 11e4fe8..0844470 100644 --- a/src/dpy_appemojis/dpy_appemojis.py +++ b/src/dpy_appemojis/dpy_appemojis.py @@ -172,22 +172,13 @@ class DPYAppEmojis: for name in to_create: image = await asyncio.to_thread(_read_file, desired[name]) - try: - emoji = await self._client.create_application_emoji(name=name, image=image) - except discord.HTTPException: - # raise XOR log: this re-raises, so the exception carries the failure to the - # caller (who decides fatal-vs-routine) - no error log here would double-report. - raise + emoji = await self._client.create_application_emoji(name=name, image=image) current[name] = emoji result.created.append(name) for name, emoji in list(existing.items()): if name not in desired: - try: - await emoji.delete() - except discord.HTTPException: - # raise XOR log: re-raises, so the exception is the signal - no log here. - raise + await emoji.delete() current.pop(name, None) result.deleted.append(name)