mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-15 02:50:53 +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:
|
else:
|
||||||
raise OSError("Unsupported BMP bitfields layout")
|
raise OSError("Unsupported BMP bitfields layout")
|
||||||
elif file_info["compression"] == self.RAW:
|
elif file_info["compression"] == self.RAW:
|
||||||
try: self.is_cur
|
try:
|
||||||
except: self.is_cur = False
|
self.is_cur
|
||||||
|
except:
|
||||||
|
self.is_cur = False
|
||||||
|
|
||||||
if file_info["bits"] == 32 and self.is_cur:
|
if file_info["bits"] == 32 and self.is_cur:
|
||||||
raw_mode, self.mode = "BGRA", "RGBA"
|
raw_mode, self.mode = "BGRA", "RGBA"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user