Skip to content

Commit

Permalink
Fix key error in set_cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
hlohaus committed Feb 1, 2024
1 parent d6b3d0f commit 2a591b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion g4f/Provider/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2a591b8

Please sign in to comment.