1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

[common] show full URL in Extractor.request() error messages

This commit is contained in:
Mike Fährmann 2024-04-18 15:45:36 +02:00
parent a5071c9ca0
commit a7d8cbab0e
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -188,7 +188,8 @@ class Extractor():
if notfound and code == 404:
raise exception.NotFoundError(notfound)
msg = "'{} {}' for '{}'".format(code, response.reason, url)
msg = "'{} {}' for '{}'".format(
code, response.reason, response.url)
server = response.headers.get("Server")
if server and server.startswith("cloudflare") and \
code in (403, 503):