mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
driver屏蔽回调错误
This commit is contained in:
parent
34296c1aca
commit
9ef5a263ee
@ -149,8 +149,9 @@ class ChromiumDriver(object):
|
|||||||
if event['method'] in self.event_handlers:
|
if event['method'] in self.event_handlers:
|
||||||
try:
|
try:
|
||||||
self.event_handlers[event['method']](**event['params'])
|
self.event_handlers[event['method']](**event['params'])
|
||||||
except Exception as e:
|
except Exception:
|
||||||
raise RuntimeError(f"\n回调函数 {self.event_handlers[event['method']].__name__} 错误:\n{e}")
|
pass
|
||||||
|
# raise RuntimeError(f"\n回调函数 {self.event_handlers[event['method']].__name__} 错误:\n{e}")
|
||||||
|
|
||||||
self.event_queue.task_done()
|
self.event_queue.task_done()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user