summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorneobooru <50623835+neobooru@users.noreply.github.com>2021-06-07 00:37:30 +0200
committerneobooru <50623835+neobooru@users.noreply.github.com>2021-06-07 00:37:30 +0200
commitfa4997fbb97d636b1b367a6862d819c96023f420 (patch)
treecdd6ad42b1740fb0594684aac686c4dd503c28ea /server
parent3cabe790a793174564431f407213ea7de1927771 (diff)
server: fix issue where no video files could be uploaded
Diffstat (limited to 'server')
-rw-r--r--server/szurubooru/func/image_hash.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/szurubooru/func/image_hash.py b/server/szurubooru/func/image_hash.py
index 8d1cd2a..a445e62 100644
--- a/server/szurubooru/func/image_hash.py
+++ b/server/szurubooru/func/image_hash.py
@@ -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."
)