From 01dfb2d4a2650998fadf4ce17dd834eda0dab3e9 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Thu, 9 Jan 2025 20:18:42 +0100 Subject: [PATCH] Fix --- src/modules/stream_notifications/twitch/webhook.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/stream_notifications/twitch/webhook.py b/src/modules/stream_notifications/twitch/webhook.py index 8fc57b7..b990efe 100644 --- a/src/modules/stream_notifications/twitch/webhook.py +++ b/src/modules/stream_notifications/twitch/webhook.py @@ -131,8 +131,11 @@ class TwitchService: async def start(cls): logger.info("Starting Twitch service...") - twith = await authorize(auto_refresh_auth=True) - await cls(twith).run() + try: + twith = await authorize(auto_refresh_auth=True) + await cls(twith).run() + except Exception as e: + logger.error("Twitch service failed", exc_info=e) logger.info("Twitch service stopped")