修改msg_json为空的情况

This commit is contained in:
又阳月 2023-12-07 19:38:57 +08:00
parent cee5af6d7e
commit 8a339e812f

View File

@ -100,6 +100,8 @@ class ChromiumDriver(object):
try:
# self._ws.settimeout(1)
msg_json = self._ws.recv()
# msg_json有概率为空
if msg_json == '': continue
msg = loads(msg_json)
except WebSocketTimeoutException:
continue