multani/sonata — Issue #3: --hidden gives harmless Traceback
Author: quite
Created: 2011-11-28 08:00:27+00:00
State: open

I can see no harmful side-affects of these tracebacks, but they do occur...
When sonata is invoced, music is indeed playing and there is a cover.jpg
is the song's directory.

kelebek:~> sonata --hidden
Error grabbing key 173, 0x8e09050
Error grabbing key 171, 0x8e09050
Error grabbing key 172, 0x8e09050
Error grabbing key 174, 0x8e09050
/usr/local/lib/python2.7/site-packages/sonata/img.py:23: GtkWarning: gdk_pixbuf_scale_simple: assertion `dest_width > 0' failed
crop_pixbuf = pixbuf.scale_simple(image_width, image_height, gtk.gdk.INTERP_HYPER)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/sonata/artwork.py", line 491, in artwork_set_image
pix2 = img.pixbuf_add_border(pix2)
File "/usr/local/lib/python2.7/site-packages/sonata/img.py", line 29, in pixbuf_add_border
width = pix.get_width()
AttributeError: 'NoneType' object has no attribute 'get_width'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/sonata/artwork.py", line 491, in artwork_set_image
pix2 = img.pixbuf_add_border(pix2)
File "/usr/local/lib/python2.7/site-packages/sonata/img.py", line 29, in pixbuf_add_border
width = pix.get_width()
AttributeError: 'NoneType' object has no attribute 'get_width'