From 45e42f4cd19b6ec1b7d2f8ed4052741c75206259 Mon Sep 17 00:00:00 2001 From: towa <7078986+towa@users.noreply.github.com> Date: Thu, 20 Oct 2022 12:49:05 +0200 Subject: [PATCH] fix uncaught exception --- gml_application_schema_toolbox/gui/load_wizard_wfs.py | 5 +++++ 1 file changed, 5 insertions(+) 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()