Skip to content

Commit

Permalink
Merge pull request #251 from gbd-consult/bug/229_uncaught_exception
Browse files Browse the repository at this point in the history
fix uncaught exception
  • Loading branch information
Guts authored Oct 20, 2022
2 parents f40f85f + 45e42f4 commit 1e36141
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gml_application_schema_toolbox/gui/load_wizard_wfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 1e36141

Please sign in to comment.