mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-12 17:40:51 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
32a6c2268f
commit
e28357ecec
|
@ -209,8 +209,10 @@ class BmpImageFile(ImageFile.ImageFile):
|
|||
else:
|
||||
raise OSError("Unsupported BMP bitfields layout")
|
||||
elif file_info["compression"] == self.RAW:
|
||||
try: self.is_cur
|
||||
except: self.is_cur = False
|
||||
try:
|
||||
self.is_cur
|
||||
except:
|
||||
self.is_cur = False
|
||||
|
||||
if file_info["bits"] == 32 and self.is_cur:
|
||||
raw_mode, self.mode = "BGRA", "RGBA"
|
||||
|
|
Loading…
Reference in New Issue
Block a user