From 5609a3c425263189d5dd0db4a118b7f9b7c19713 Mon Sep 17 00:00:00 2001 From: Kaaninchen <124433727+kaaninchen@users.noreply.github.com> Date: Fri, 21 Aug 2026 18:40:44 +0200 Subject: [PATCH] fix: intercept voice_channel status error --- src/dc/handlers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dc/handlers.py b/src/dc/handlers.py index 7b00b73..dcb2750 100644 --- a/src/dc/handlers.py +++ b/src/dc/handlers.py @@ -145,7 +145,11 @@ async def _update_next_loop(voice_channel: discord.VoiceChannel): next_stop_str = next_stop["name"] status_text = f"{lang.embeds.info.next_stop()}: {next_stop_str}" - await voice_channel.set_status(status_text, reason="Next stop status") + + try: + await voice_channel.set_status(status_text, reason="Next stop status") + except discord.HTTPException as e: + logger(F"Failed to set the channel status (network error?): {e}", "error") if config.announcements.voice_announcements: if len(voice_channel.members) > 0: