Skip to content

Commit 6817143

Browse files
committed
fix: Simplify exception handling in DM user method
1 parent 1be0fdd commit 6817143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hoyo_buddy/bot/bot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ async def dm_user(
290290

291291
try:
292292
message = await user.send(content, **kwargs)
293-
except (discord.Forbidden, discord.HTTPException):
293+
except discord.Forbidden:
294294
logger.debug(f"Failed to DM user {user_id}")
295295
except Exception as e:
296296
self.capture_exception(e)

0 commit comments

Comments
 (0)