Fix errors
Libraries updated and these are no longer needed
This commit is contained in:
parent
f877d620af
commit
9bb7fbbc9e
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user