From aea403a874b1c9d648899b351fb91b5af22aea73 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 28 Jul 2023 18:19:22 +0700 Subject: [PATCH] additional thumb dl error handling --- tubearchivist/home/src/download/thumbnails.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tubearchivist/home/src/download/thumbnails.py b/tubearchivist/home/src/download/thumbnails.py index 88b65586..95461e8c 100644 --- a/tubearchivist/home/src/download/thumbnails.py +++ b/tubearchivist/home/src/download/thumbnails.py @@ -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)