From c9c98b6c114ad0093c8ee8bd2d2f70b6f09969f1 Mon Sep 17 00:00:00 2001 From: "beville@gmail.com" Date: Wed, 27 Mar 2013 17:55:02 +0000 Subject: [PATCH] Handle if volume description is None git-svn-id: http://comictagger.googlecode.com/svn/trunk@546 6c5673fe-1810-88d6-992b-cd32ca31540c --- comictaggerlib/volumeselectionwindow.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/comictaggerlib/volumeselectionwindow.py b/comictaggerlib/volumeselectionwindow.py index 584a388..f18e566 100644 --- a/comictaggerlib/volumeselectionwindow.py +++ b/comictaggerlib/volumeselectionwindow.py @@ -369,7 +369,9 @@ class VolumeSelectionWindow(QtGui.QDialog): # list selection was changed, update the info on the volume for record in self.cv_search_results: if record['id'] == self.volume_id: - - self.teDetails.setText ( record['description'] ) + if record['description'] is None: + self.teDetails.setText ( "" ) + else: + self.teDetails.setText ( record['description'] ) self.imageWidget.setURL( record['image']['super_url'] ) break