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

@ -280,9 +280,9 @@ class MetadataSingleDialog(QDialog, Ui_MetadataSingleDialog):
else:
self.cover.setPixmap(pix)
self.cover_changed = True
self.cpixmap = pix
self.cpixmap = pix
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:
self.fetch_cover_button.setEnabled(True)
self.unsetCursor()