From de224ef3e4c80976537b272086a9a9d7aaa7ff0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 21 Oct 2023 13:23:45 +0200 Subject: [PATCH] [cookies] include exception in fallback warning --- gallery_dl/cookies.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gallery_dl/cookies.py b/gallery_dl/cookies.py index 20959a8f..416cc9a1 100644 --- a/gallery_dl/cookies.py +++ b/gallery_dl/cookies.py @@ -832,8 +832,9 @@ class DatabaseConnection(): 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-")