use child fallbacks only when a non-user error occurs (#6329)

This commit is contained in:
Mike Fährmann
2024-10-17 08:04:41 +02:00
parent 4b31601dc0
commit d3dcc44bd1

View File

@@ -433,7 +433,8 @@ class DownloadJob(Job):
if status:
self.status |= status
if "_fallback" in kwdict and self.fallback:
if (status & 95 and # not FormatError or OSError
"_fallback" in kwdict and self.fallback):
fallback = kwdict["_fallback"] = \
iter(kwdict["_fallback"])
try: