Merge pull request #192 from lordwelch/fixes

Fix errors
This commit is contained in:
Timmy Welch 2021-08-16 17:37:19 -07:00 committed by GitHub
commit 9ee95b8d5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()