Open yake1145141 opened 2 months ago
for item in DDBOT关注的主播缓存: try: if item['live_status'] == 1 and (DB.GetLiveTimeStamp((item['uid'], item['roomid']))['live_status'] == "live"):
pass
else:
logging.info("已添加的要更新数据库的主播:"+ str(item))
要更新数据库的主播缓存.append(item)
except:
logging.info("已添加的要更新数据库的主播:"+ str(item))
要更新数据库的主播缓存.append(item)
我以后会修复的,感谢指正
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