From 7383b1892414f2ade923ae825e574f5087c706c2 Mon Sep 17 00:00:00 2001 From: Mizaki Date: Tue, 7 May 2024 22:08:27 +0100 Subject: [PATCH] Warn on read style failure in rename window --- comictaggerlib/renamewindow.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/comictaggerlib/renamewindow.py b/comictaggerlib/renamewindow.py index d6af2bb..62e6be0 100644 --- a/comictaggerlib/renamewindow.py +++ b/comictaggerlib/renamewindow.py @@ -85,9 +85,13 @@ class RenameWindow(QtWidgets.QDialog): if md is None or md.is_empty: md, error = self.parent().overlay_ca_read_style(self.load_data_styles, ca) - # How much should we care about this error? Notify user or not? if error is not None: logger.error("Failed to load metadata for %s: %s", ca.path, error) + QtWidgets.QMessageBox.warning( + self, + "Read Failed!", + f"One or more of the read styles failed to load for {ca.path}, check log for details", + ) if md.is_empty: md = ca.metadata_from_filename(