diff --git a/gml_application_schema_toolbox/gui/load_wizard_wfs.py b/gml_application_schema_toolbox/gui/load_wizard_wfs.py index 95690a5..6d852d5 100644 --- a/gml_application_schema_toolbox/gui/load_wizard_wfs.py +++ b/gml_application_schema_toolbox/gui/load_wizard_wfs.py @@ -7,6 +7,7 @@ # Standard library import os +from lxml.etree import XMLSyntaxError from owslib.util import ServiceException from owslib.wfs import WebFeatureService from qgis.core import ( @@ -210,6 +211,10 @@ def on_connectBtn_clicked_(self): self.datasetsTabWidget.setTabEnabled( self.datasetsTabWidget.indexOf(self.tab_2), False ) + except XMLSyntaxError: + self.datasetsTabWidget.setTabEnabled( + self.datasetsTabWidget.indexOf(self.tab_2), False + ) self.storedQueriesListWidget.sortItems()