mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2024-12-23 10:20:13 +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 self.get_fallback()
|
||||
|
||||
except UnidentifiedImageError:
|
||||
except (UnidentifiedImageError, OSError):
|
||||
print(f"failed to open thumbnail: {url}")
|
||||
return self.get_fallback()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user