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 f634783d26
commit f5e88d07bb
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

@ -135,7 +135,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

@ -208,7 +208,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()