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

pull/5516/head
Mike Fährmann 5 months ago
parent a5071c9ca0
commit a7d8cbab0e
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -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):

Loading…
Cancel
Save