mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
server: fix issue where no video files could be uploaded
This commit is contained in:
@ -44,7 +44,7 @@ def _preprocess_image(content: bytes) -> NpMatrix:
|
||||
try:
|
||||
img = Image.open(BytesIO(content))
|
||||
return np.asarray(img.convert("L"), dtype=np.uint8)
|
||||
except IOError:
|
||||
except (IOError, ValueError):
|
||||
raise errors.ProcessingError(
|
||||
"Unable to generate a signature hash " "for this image."
|
||||
)
|
||||
|
Reference in New Issue
Block a user