mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-05 00:49:19 +00:00
handle malformed thumbnail download, #430
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user