设置cookies时忽略过期的

This commit is contained in:
g1879 2024-07-02 00:05:14 +08:00
parent cc3ff505cf
commit 94a4e6871f

View File

@ -127,8 +127,7 @@ def set_tab_cookies(page, cookies):
if cookie.get('domain', None):
try:
page._run_cdp_loaded('Network.setCookie', **cookie)
if is_cookie_in_driver(page, cookie):
continue
continue
except Exception:
pass