mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
修改msg_json为空的情况
This commit is contained in:
parent
cee5af6d7e
commit
8a339e812f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user