From 94a4e6871f15d3c2fe960a252e742842b8575d1a Mon Sep 17 00:00:00 2001 From: g1879 Date: Tue, 2 Jul 2024 00:05:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AEcookies=E6=97=B6=E5=BF=BD?= =?UTF-8?q?=E7=95=A5=E8=BF=87=E6=9C=9F=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DrissionPage/_functions/cookies.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/DrissionPage/_functions/cookies.py b/DrissionPage/_functions/cookies.py index fad305d..722a52f 100644 --- a/DrissionPage/_functions/cookies.py +++ b/DrissionPage/_functions/cookies.py @@ -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