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:
parent
a5071c9ca0
commit
a7d8cbab0e
@ -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…
Reference in New Issue
Block a user