diff --git a/ocarina/image.py b/ocarina/image.py index 951ed9d3..5ff7b292 100644 --- a/ocarina/image.py +++ b/ocarina/image.py @@ -25,7 +25,8 @@ class Image(gtk.Image): new_w = (float(w) / float(h)) * new_h if new_w > 0 and new_h > 0: buf = buf.scale_simple(int(new_w), int(new_h), gtk.gdk.INTERP_HYPER) - self.set_from_pixbuf(buf) + if buf != None: + self.set_from_pixbuf(buf) class AlbumArt(Image):