From 8568123194712b952cbcd6f7a9233f3dbd8a11de Mon Sep 17 00:00:00 2001 From: Peery Date: Wed, 13 Apr 2022 23:38:28 +0200 Subject: [PATCH] Fixed a Bug in TagModifyDialog handling Fixed an issue where a cancelled TagModifyDialog was causing errors in logging due to returning None. --- ArtNet/gui/importer_window.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArtNet/gui/importer_window.py b/ArtNet/gui/importer_window.py index a0e35c9..3a5f17b 100644 --- a/ArtNet/gui/importer_window.py +++ b/ArtNet/gui/importer_window.py @@ -828,7 +828,7 @@ class ImporterWindow(ArtnetMainWindow): dialog = TagModifyDialog(self, create_tag=True) tag_data: dict = dialog.exec_() - logging.debug("Got Tag data", tag_data) + logging.debug(f"Got Tag data: {tag_data}") if tag_data is None or len(tag_data.keys()) == 0: # got canceled? return @@ -914,7 +914,7 @@ class ImporterWindow(ArtnetMainWindow): edit_dialog.set_all_categories() tag_data = edit_dialog.exec_() - logging.debug("Got Tag data", tag_data) + logging.debug(f"Got Tag data: {tag_data}") if tag_data is None or len(tag_data.keys()) == 0: return