Waldo-Schaeffer / DDBOTNT

一个基于统信UOS生态的的QQ群、微信群推送框架, 抄袭自Sora233的DDBOT,目前仅支持b站直播,使用c-python重新编写其软件功能
1 stars 0 forks source link

代码第1113行,如果数据表livetimestamp为空,则会报错 #2

Open yake1145141 opened 2 months ago

yake1145141 commented 2 months ago

Traceback (most recent call last): File "C:\Users\Administrator\Desktop\DDBOTPY\DDBOT.py", line 1113, in if item['live_status'] == 1 and (DB.GetLiveTimeStamp((item['uid'], item['roomid']))['live_status'] == "live"): TypeError: 'NoneType' object is not subscriptable

yake1145141 commented 2 months ago

for item in DDBOT关注的主播缓存: try: if item['live_status'] == 1 and (DB.GetLiveTimeStamp((item['uid'], item['roomid']))['live_status'] == "live"):

TODO: 添加未来处理直播中状态的代码

            pass
        else:
            logging.info("已添加的要更新数据库的主播:"+ str(item))
            要更新数据库的主播缓存.append(item)
    except:
        logging.info("已添加的要更新数据库的主播:"+ str(item))
        要更新数据库的主播缓存.append(item)
Waldo-Schaeffer commented 1 month ago

我以后会修复的,感谢指正