Skip to content

Commit

Permalink
[cookies] include exception in fallback warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Oct 21, 2023
1 parent 7958ab1 commit de224ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gallery_dl/cookies.py
Expand Up @@ -832,8 +832,9 @@ def __enter__(self):
self.database = sqlite3.connect(
uri, uri=True, isolation_level=None, check_same_thread=False)
return self.database
except Exception:
_log_debug("Falling back to temporary database copy")
except Exception as exc:
_log_debug("Falling back to temporary database copy (%s: %s)",
exc.__class__.__name__, exc)

try:
self.directory = tempfile.TemporaryDirectory(prefix="gallery-dl-")
Expand Down

0 comments on commit de224ef

Please sign in to comment.