From 121889ed1bfbc196259e46538b5fe122542bdb16 Mon Sep 17 00:00:00 2001 From: "beville@gmail.com" Date: Fri, 30 Nov 2012 17:55:28 +0000 Subject: [PATCH] Fixed a exception when selecting a non-existent issue from a volume git-svn-id: http://comictagger.googlecode.com/svn/trunk@187 6c5673fe-1810-88d6-992b-cd32ca31540c --- taggerwindow.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/taggerwindow.py b/taggerwindow.py index 52cf092..db312c4 100644 --- a/taggerwindow.py +++ b/taggerwindow.py @@ -791,11 +791,14 @@ class TaggerWindow( QtGui.QMainWindow): QtGui.QApplication.restoreOverrideCursor() QtGui.QMessageBox.critical(self, self.tr("Network Issue"), self.tr("Could not connect to ComicVine to get issue details!")) else: - self.metadata.overlay( new_metadata ) - # Now push the new combined data into the edit controls - self.metadataToForm() - finally: QtGui.QApplication.restoreOverrideCursor() + if new_metadata is not None: + self.metadata.overlay( new_metadata ) + # Now push the new combined data into the edit controls + self.metadataToForm() + else: + QtGui.QMessageBox.critical(self, self.tr("Search"), self.tr("Could not find an issue {0} for that series".format(selector.issue_number))) + def commitMetadata(self):