mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-13 12:19:54 +08:00
增加通知推送保护机制保护机制
This commit is contained in:
@@ -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__':
|
||||
|
||||
Reference in New Issue
Block a user