From eff4053420651312166c5ea2a9bd122345cc675c Mon Sep 17 00:00:00 2001 From: EstrellaXD Date: Thu, 11 May 2023 20:56:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=80=9A=E7=9F=A5=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E4=BF=9D=E6=8A=A4=E6=9C=BA=E5=88=B6=E4=BF=9D=E6=8A=A4?= =?UTF-8?q?=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/module/network/notification.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/module/network/notification.py b/src/module/network/notification.py index 54d1354d..d390d5c8 100644 --- a/src/module/network/notification.py +++ b/src/module/network/notification.py @@ -75,7 +75,11 @@ class PostNotification(getClient()): f"季度: 第{info.season}季\n" \ f"更新集数: 第{info.episode}集\n" \ f"{info.poster_link}\n" - return self.post_msg(text) + try: + return self.post_msg(text) + except Exception as e: + logger.warning(f"Failed to send notification: {e}") + return False if __name__ == '__main__':