mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2024-12-23 18:30:12 +00:00
handle malformed thumbnail download, #430
This commit is contained in:
parent
0e5421a558
commit
1125c0c4bf
@ -48,7 +48,7 @@ class ThumbManagerBase:
|
|||||||
return img
|
return img
|
||||||
return self.get_fallback()
|
return self.get_fallback()
|
||||||
|
|
||||||
except UnidentifiedImageError:
|
except (UnidentifiedImageError, OSError):
|
||||||
print(f"failed to open thumbnail: {url}")
|
print(f"failed to open thumbnail: {url}")
|
||||||
return self.get_fallback()
|
return self.get_fallback()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user