From ce52d2967eb8ce50a4bff950b81e2e7a778cd09e Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Tue, 11 Oct 2011 19:27:34 +0200 Subject: [PATCH] fix crash when there is no thumbnail on a video (closes #708) --- weboob/applications/qvideoob/minivideo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weboob/applications/qvideoob/minivideo.py b/weboob/applications/qvideoob/minivideo.py index 4478f290..1aa7171f 100644 --- a/weboob/applications/qvideoob/minivideo.py +++ b/weboob/applications/qvideoob/minivideo.py @@ -50,7 +50,7 @@ class MiniVideo(QFrame): if not backend: return - if video.thumbnail.data: + if video.thumbnail and video.thumbnail.data: img = QImage.fromData(video.thumbnail.data) self.ui.imageLabel.setPixmap(QPixmap.fromImage(img))