summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-02-01 23:14:43 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-02-01 23:14:43 +0100
commit2a591b8d6eff9d3a3821e9bac5e289c4fb7018d2 (patch)
tree120a068016b12e46798d221cb044decae5626e7f /g4f
parentFix issue #1537, copy options sets (diff)
downloadgpt4free-2a591b8d6eff9d3a3821e9bac5e289c4fb7018d2.tar
gpt4free-2a591b8d6eff9d3a3821e9bac5e289c4fb7018d2.tar.gz
gpt4free-2a591b8d6eff9d3a3821e9bac5e289c4fb7018d2.tar.bz2
gpt4free-2a591b8d6eff9d3a3821e9bac5e289c4fb7018d2.tar.lz
gpt4free-2a591b8d6eff9d3a3821e9bac5e289c4fb7018d2.tar.xz
gpt4free-2a591b8d6eff9d3a3821e9bac5e289c4fb7018d2.tar.zst
gpt4free-2a591b8d6eff9d3a3821e9bac5e289c4fb7018d2.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/Provider/helper.py b/g4f/Provider/helper.py
index 9788bffd..2cab5e6f 100644
--- a/g4f/Provider/helper.py
+++ b/g4f/Provider/helper.py
@@ -51,7 +51,7 @@ def get_cookies(domain_name: str = '', raise_requirements_error: bool = True) ->
def set_cookies(domain_name: str, cookies: Cookies = None) -> None:
if cookies:
_cookies[domain_name] = cookies
- else:
+ elif domain_name in _cookies:
_cookies.pop(domain_name)
def load_cookies_from_browsers(domain_name: str, raise_requirements_error: bool = True) -> Cookies: