Fix #1277 (Error getting coverage)

This commit is contained in:
Kovid Goyal 2008-11-17 09:33:56 -08:00
parent 97fbdff1aa
commit fe5e125e92

View File

@ -282,7 +282,7 @@ class MetadataSingleDialog(QDialog, Ui_MetadataSingleDialog):
self.cover_changed = True self.cover_changed = True
self.cpixmap = pix self.cpixmap = pix
except LibraryThingError, err: except LibraryThingError, err:
error_dialog(self, _('Could not fetch cover'), _('<b>Could not fetch cover.</b><br/>')+unicode(err)).exec_() error_dialog(self, _('Could not fetch cover'), _('<b>Could not fetch cover.</b><br/>')+repr(err)).exec_()
finally: finally:
self.fetch_cover_button.setEnabled(True) self.fetch_cover_button.setEnabled(True)
self.unsetCursor() self.unsetCursor()