Fix errors

Libraries updated and these are no longer needed
This commit is contained in:
lordwelch 2020-02-13 00:04:44 -08:00
parent f877d620af
commit 9bb7fbbc9e
3 changed files with 1 additions and 3 deletions

View File

@ -51,7 +51,6 @@ class ImageHasher(object):
image = self.image.resize(
(self.width, self.height), Image.ANTIALIAS).convert("L")
except Exception as e:
sys.exc_clear()
print("average_hash error:", e)
return int(0)

View File

@ -138,7 +138,6 @@ class IssueIdentifier:
try:
cropped_im = im.crop((int(w / 2), 0, w, h))
except Exception as e:
sys.exc_clear()
print("cropCover() error:", e)
return None

View File

@ -157,7 +157,7 @@ class PageListEditor(QWidget):
self.modified.emit()
def changePageType(self, i):
new_type = self.comboBox.itemData(i).toString()
new_type = self.comboBox.itemData(i)
if self.getCurrentPageType() != new_type:
self.setCurrentPageType(new_type)
self.emitFrontCoverChange()