diff --git a/comictaggerlib/gui.py b/comictaggerlib/gui.py index 9e3714a..0f9d21c 100644 --- a/comictaggerlib/gui.py +++ b/comictaggerlib/gui.py @@ -24,9 +24,12 @@ try: """ if QtWidgets.QApplication.instance() is not None: errorbox = QtWidgets.QMessageBox() + errorbox.setStandardButtons(QtWidgets.QMessageBox.StandardButton.Abort|QtWidgets.QMessageBox.StandardButton.Ignore) errorbox.setText(log_msg) - errorbox.exec() - QtWidgets.QApplication.exit(1) + if errorbox.exec() == QtWidgets.QMessageBox.StandardButton.Abort: + QtWidgets.QApplication.exit(1) + else: + logger.warning("Exception ignored") else: logger.debug("No QApplication instance available.")