mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing broken icon bug.
This commit is contained in:
parent
ecae048376
commit
d3fa017cd9
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue