From 560a5ac793c4165bbc0ef8fc0d2c8da13f9a0c49 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Tue, 22 Apr 2025 00:42:21 +0200 Subject: [PATCH] Fix --- src/applications/schedule_sync/workflows/sync.py | 3 --- src/applications/twitch_webhook/notification.py | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/applications/schedule_sync/workflows/sync.py b/src/applications/schedule_sync/workflows/sync.py index a0fe9c5..46706be 100644 --- a/src/applications/schedule_sync/workflows/sync.py +++ b/src/applications/schedule_sync/workflows/sync.py @@ -30,9 +30,6 @@ class ScheduleSyncWorkflow: streamers = await StreamerConfigRepository().all() for streamer in streamers: - if streamer.integrations.discord is None: - continue - await workflow.start_activity( syncronize, streamer.twitch.id, diff --git a/src/applications/twitch_webhook/notification.py b/src/applications/twitch_webhook/notification.py index b2bc37c..62dc900 100644 --- a/src/applications/twitch_webhook/notification.py +++ b/src/applications/twitch_webhook/notification.py @@ -45,7 +45,8 @@ async def delete_telegram_message(chat_id: int, message_id: int): } ) - result.raise_for_status() + if result.status_code != 200: + return False except Exception as e: logger.error("Failed to delete telegram message", exc_info=e) return False