fix🐛: 修复B站动态获取失败的时候,会发送空消息

This commit is contained in:
HibiKier 2023-12-28 01:31:52 +08:00
parent b9a39c2760
commit 72e0c7fdb5
2 changed files with 5 additions and 1 deletions

View File

@ -335,6 +335,10 @@ PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可能
## 更新
### 2023/12/28
* 修复B站动态获取失败的时候会发送空消息
### 2023/9/6
* 修正b站订阅

View File

@ -278,7 +278,7 @@ async def send_sub_msg(rst: str, sub: BilibiliSub, bot: Bot):
:param bot: Bot
"""
temp_group = []
if rst:
if rst and rst.strip():
for x in sub.sub_users.split(",")[:-1]:
try:
if ":" in x and x.split(":")[1] not in temp_group: