Merge pull request #7434 from radarhere/blp

This commit is contained in:
Hugo van Kemenade 2023-10-02 07:59:07 -06:00 committed by GitHub
commit 3bbd896b03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -442,7 +442,7 @@ class BLPEncoder(ImageFile.PyEncoder):
return len(data), 0, data return len(data), 0, data
def _save(im, fp, filename, save_all=False): def _save(im, fp, filename):
if im.mode != "P": if im.mode != "P":
msg = "Unsupported BLP image mode" msg = "Unsupported BLP image mode"
raise ValueError(msg) raise ValueError(msg)