Fix workflow
This commit is contained in:
6
bot.py
6
bot.py
@@ -373,7 +373,11 @@ async def _rotate_presence() -> None:
|
||||
except Exception as e:
|
||||
log.warning("Presence: failed to fetch economy count: %s", e)
|
||||
activity = _PRESENCES[_presence_index % len(_PRESENCES)](guild)
|
||||
await bot.change_presence(status=discord.Status.online, activity=activity)
|
||||
try:
|
||||
await bot.change_presence(status=discord.Status.online, activity=activity)
|
||||
except Exception as e:
|
||||
# gateway may be mid-reconnect; skip this rotation instead of tracebacking
|
||||
log.warning("Presence update skipped: %s", e)
|
||||
_presence_index += 1
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user