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 47b51af..2bcadab 100644 --- a/comictaggerlib/issueidentifier.py +++ b/comictaggerlib/issueidentifier.py @@ -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 diff --git a/comictaggerlib/pagelisteditor.py b/comictaggerlib/pagelisteditor.py index dc602d3..cdf91be 100644 --- a/comictaggerlib/pagelisteditor.py +++ b/comictaggerlib/pagelisteditor.py @@ -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()