additional thumb dl error handling

This commit is contained in:
Simon
2023-07-28 18:19:22 +07:00
parent ab8fed14bb
commit aea403a874

View File

@@ -54,7 +54,10 @@ class ThumbManagerBase:
if response.status_code == 404:
return self.get_fallback()
except requests.exceptions.RequestException:
except (
requests.exceptions.RequestException,
requests.exceptions.ReadTimeout,
):
print(f"{self.item_id}: retry thumbnail download {url}")
sleep((i + 1) ** i)