迷茫
This commit is contained in:
parent
d742edaff4
commit
e8b981e7df
9
api.py
9
api.py
@ -354,4 +354,11 @@ if __name__ == "__main__":
|
|||||||
api.getDanmaku()
|
api.getDanmaku()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
except requests.exceptions.BaseHTTPError:
|
except requests.exceptions.BaseHTTPError:
|
||||||
pri
|
print("网络错误,请确认网络")
|
||||||
|
time.sleep(5)
|
||||||
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
|
else:
|
||||||
|
print("主播未开播,等待2分钟后重试")
|
||||||
|
time.sleep(60)
|
||||||
|
api.updRoomInfo()
|
||||||
|
Reference in New Issue
Block a user