Fixed raising of no exception

This commit is contained in:
Andrew Murray 2018-06-07 19:43:13 +10:00
parent 948e30396e
commit 62c870f5cf

View File

@ -683,7 +683,7 @@ def _save(im, fp, filename):
for idx, table in enumerate(qtables):
try:
if len(table) != 64:
raise
raise TypeError
table = array.array('B', table)
except TypeError:
raise ValueError("Invalid quantization table")