From 775d2ac9995d3efcffff6f696789677ee0f70e4e Mon Sep 17 00:00:00 2001 From: ClosedPort22 <44864697+ClosedPort22@users.noreply.github.com> Date: Fri, 31 Mar 2023 20:08:38 +0800 Subject: [PATCH] [downloader:http] improve error logging when releasing connection --- gallery_dl/downloader/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gallery_dl/downloader/http.py b/gallery_dl/downloader/http.py index b3f381ec..d8708fba 100644 --- a/gallery_dl/downloader/http.py +++ b/gallery_dl/downloader/http.py @@ -306,8 +306,8 @@ class HttpDownloader(DownloaderBase): except (RequestException, SSLError, OpenSSLError) as exc: print() self.log.debug( - "Unable to consume response body (%s); " - "closing the connection anyway", exc) + "Unable to consume response body (%s: %s); " + "closing the connection anyway", exc.__class__.__name__, exc) response.close() @staticmethod