Fixing broken icon bug.

This commit is contained in:
Samuel Clay 2013-08-21 12:40:04 -07:00
parent ecae048376
commit d3fa017cd9

View file

@ -139,7 +139,10 @@ class IconImporter(object):
return
else:
# Load XOR bitmap
image = BmpImagePlugin.DibImageFile(image_file)
try:
image = BmpImagePlugin.DibImageFile(image_file)
except IOError:
return
if image.mode == 'RGBA':
# Windows XP 32-bit color depth icon without AND bitmap
pass