Skip to content

Commit

Permalink
fix: ValueError handle from cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
NTFSvolume committed Jan 31, 2025
1 parent 638cc64 commit ec592fb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions cyberdrop_dl/utils/cookie_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,12 @@ def wrapper(*args, **kwargs) -> None:
msg = ""
try:
return func(*args, **kwargs)
except PermissionError:
except PermissionError as e:
msg = """We've encountered a Permissions Error. Please close all browsers and try again
If you are still having issues, make sure all browsers processes are closed in Task Manager"""
msg = dedent(msg)

except ValueError as e:
msg = str(e)
msg = dedent(msg) + f"\nERROR: {e!s}"

except UnsupportedBrowserError as e:
except (ValueError, UnsupportedBrowserError) as e:
msg = f"ERROR: {e!s}"

except browser_cookie3.BrowserCookieError as e:
Expand Down

0 comments on commit ec592fb

Please sign in to comment.