handle malformed thumbnail download, #430

This commit is contained in:
simon 2023-02-17 09:17:04 +07:00
parent 0e5421a558
commit 1125c0c4bf
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -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()