From f5e88d07bb57a599c29e36532500617b119ab4c7 Mon Sep 17 00:00:00 2001 From: lordwelch Date: Thu, 13 Feb 2020 00:04:44 -0800 Subject: [PATCH] Fix errors Libraries updated and these are no longer needed --- comictaggerlib/imagehasher.py | 1 - comictaggerlib/issueidentifier.py | 1 - comictaggerlib/pagelisteditor.py | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/comictaggerlib/imagehasher.py b/comictaggerlib/imagehasher.py index 21c4172..79cf120 100755 --- a/comictaggerlib/imagehasher.py +++ b/comictaggerlib/imagehasher.py @@ -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) diff --git a/comictaggerlib/issueidentifier.py b/comictaggerlib/issueidentifier.py index 292e84c..6f67d15 100644 --- a/comictaggerlib/issueidentifier.py +++ b/comictaggerlib/issueidentifier.py @@ -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 diff --git a/comictaggerlib/pagelisteditor.py b/comictaggerlib/pagelisteditor.py index aa47fc1..43aa817 100644 --- a/comictaggerlib/pagelisteditor.py +++ b/comictaggerlib/pagelisteditor.py @@ -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()