Comment 2 for bug 1365989

Revision history for this message
Pierantonio (pborga) wrote :

For me too:

'NoneType' object has no attribute 'mode'

Traceback (most recent call last):
  File "/usr/share/phatch/phatch/core/api.py", line 493, in get_photo
    photo = pil.Photo(info_file, info_not_file)
  File "/usr/share/phatch/phatch/core/pil.py", line 471, in __init__
    layer.image)
  File "/usr/share/phatch/phatch/core/pil.py", line 175, in __init__
    if image == None:
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 576, in __eq__
    a = (self.mode == other.mode)
AttributeError: 'NoneType' object has no attribute 'mode'