Skip to content

Commit

Permalink
fix: fix unexpected import error when browser-cookie3 is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
HanaokaYuzu committed Apr 28, 2024
1 parent 993e0b1 commit 499d87d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gemini_webapi/utils/load_browser_cookies.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import browser_cookie3 as bc3

from .logger import logger


Expand All @@ -20,6 +18,8 @@ def load_browser_cookies(domain_name: str = "", verbose=True) -> dict:
`dict`
Dictionary with cookie name as key and cookie value as value.
"""
import browser_cookie3 as bc3

cookies = {}
for cookie_fn in [
bc3.chrome,
Expand Down

0 comments on commit 499d87d

Please sign in to comment.