Skip to content

Commit e3beead

Browse files
committed
suppressing HTTPException as nothing we can really do about that
1 parent 6389552 commit e3beead

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

wall_e/extensions/leveling.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import discord
88
import pytz
99
from discord import NotFound, app_commands, Guild
10-
from discord.errors import DiscordServerError
10+
from discord.errors import DiscordServerError, HTTPException
1111
from discord.ext import commands, tasks
1212

1313
from utilities.global_vars import bot, wall_e_config
@@ -694,6 +694,10 @@ async def _update_users(self, logger, updated_user_ids):
694694
logger.error(
695695
f"[Leveling _update_users()] got the following error when fetching member {user_id}\n{e}."
696696
)
697+
except HTTPException as e:
698+
logger.warn(
699+
f"[Leveling _update_users()] got the following error when fetching member {user_id}\n{e}."
700+
)
697701
if member:
698702
await self._update_member_profile_data(logger, member, user_id, index, total_number_of_updates_needed)
699703

0 commit comments

Comments
 (0)