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)