fix #1227 pixbuf could be None in some cases
I couldn't reproduce it but I guess it's possible
This commit is contained in:
parent
5043b0b192
commit
2ee8c23b31
|
@ -767,6 +767,8 @@ class PodcastListModel(Gtk.ListStore):
|
|||
if pixbuf_overlay is None:
|
||||
# load cover if it's not in cache
|
||||
pixbuf = self._cover_downloader.get_cover(channel, avoid_downloading=True)
|
||||
if pixbuf is None:
|
||||
return None
|
||||
pixbuf_overlay = self._resize_pixbuf(channel.url, pixbuf)
|
||||
self._save_cached_thumb(channel, pixbuf_overlay)
|
||||
|
||||
|
|
Loading…
Reference in New Issue