mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-03 19:45:56 +03:00
Fixed raising of no exception
This commit is contained in:
parent
948e30396e
commit
62c870f5cf
|
@ -683,7 +683,7 @@ def _save(im, fp, filename):
|
||||||
for idx, table in enumerate(qtables):
|
for idx, table in enumerate(qtables):
|
||||||
try:
|
try:
|
||||||
if len(table) != 64:
|
if len(table) != 64:
|
||||||
raise
|
raise TypeError
|
||||||
table = array.array('B', table)
|
table = array.array('B', table)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
raise ValueError("Invalid quantization table")
|
raise ValueError("Invalid quantization table")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user