From d78c00ddf4c7d3d190fd73b8dbfe6e512c6deb12 Mon Sep 17 00:00:00 2001 From: Peery Date: Mon, 23 May 2022 10:00:08 +0200 Subject: [PATCH] Fixed an issue when importing tags Fixed an issue where if the link generation returned None a crash would occur. --- 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 507dd90..5b218d6 100644 --- a/ArtNet/gui/importer_window.py +++ b/ArtNet/gui/importer_window.py @@ -371,14 +371,14 @@ class ImporterWindow(ArtnetMainWindow): """ self.ui.link_label.setText(ImporterWindow.UNKNOWN_LINK) - if validators.url(link): + if link is not None and validators.url(link): self.curr_link = link self.data_changed = True hyperlink = "{1}".format(link, "Source") self.ui.link_label.setText(hyperlink) self.ui.link_label.setToolTip(link) return link - elif len(link) == 0: + elif link is None or len(link) == 0: return "" else: self.ui.link_label.setText(ImporterWindow.UNKNOWN_LINK)