Fixed a Bug in TagModifyDialog handling

Fixed an issue where a cancelled TagModifyDialog was causing errors in logging due to returning None.
dev
Peery 3 years ago
parent 2b4cac949a
commit 8568123194

@ -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

Loading…
Cancel
Save