fix: actually intercept voice_channel status error

This commit is contained in:
Kaaninchen
2026-08-22 23:38:21 +02:00
parent c24749383b
commit 53ded15209
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import discord
import asyncio
import aiohttp
import random
from datetime import datetime, timedelta
@@ -148,7 +149,7 @@ async def _update_next_loop(voice_channel: discord.VoiceChannel):
try:
await voice_channel.set_status(status_text, reason="Next stop status")
except discord.HTTPException as e:
except aiohttp.ClientConnectorDNSError as e:
logger(F"Failed to set the channel status (network error?): {e}", "error")
if config.announcements.voice_announcements: