This commit is contained in:
Jerry Yan 2019-12-31 12:05:24 +08:00
parent d742edaff4
commit e8b981e7df

9
api.py
View File

@ -354,4 +354,11 @@ if __name__ == "__main__":
api.getDanmaku()
time.sleep(1)
except requests.exceptions.BaseHTTPError:
pri
print("网络错误,请确认网络")
time.sleep(5)
except Exception as e:
print(e)
else:
print("主播未开播等待2分钟后重试")
time.sleep(60)
api.updRoomInfo()