mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-24 03:23:49 +03:00
Fix key error in set_cookies
This commit is contained in:
parent
d6b3d0f240
commit
2a591b8d6e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user