From 1125c0c4bf7eb8fc6f0cfc00033e650e118bad6c Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 17 Feb 2023 09:17:04 +0700 Subject: [PATCH] handle malformed thumbnail download, #430 --- tubearchivist/home/src/download/thumbnails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubearchivist/home/src/download/thumbnails.py b/tubearchivist/home/src/download/thumbnails.py index 3f1975d2..49082aab 100644 --- a/tubearchivist/home/src/download/thumbnails.py +++ b/tubearchivist/home/src/download/thumbnails.py @@ -48,7 +48,7 @@ class ThumbManagerBase: return img return self.get_fallback() - except UnidentifiedImageError: + except (UnidentifiedImageError, OSError): print(f"failed to open thumbnail: {url}") return self.get_fallback()