From 4eac5ecd1177c8d6bc57179e618bb971ff679dcd Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Tue, 18 Feb 2025 20:51:11 +0100 Subject: [PATCH] Fix --- src/modules/stream_notifications/twitch/webhook.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/stream_notifications/twitch/webhook.py b/src/modules/stream_notifications/twitch/webhook.py index 2edb143..e3f0f9f 100644 --- a/src/modules/stream_notifications/twitch/webhook.py +++ b/src/modules/stream_notifications/twitch/webhook.py @@ -93,7 +93,10 @@ class TwitchService: for sub in subs.data: if sub.type == sub_type: - await self.twitch.delete_eventsub_subscription(sub.id) + try: + await self.twitch.delete_eventsub_subscription(sub.id) + except Exception as e: + logger.error(f"Failed to delete subscription {sub.id}", exc_info=e) await sleep(1) await self.subscribe_with_retry(method, eventsub, streamer, retry - 1)