We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d689b4 commit d665f5aCopy full SHA for d665f5a
2 files changed
.gitignore
@@ -134,3 +134,6 @@ dmypy.json
134
# Development
135
.idea/
136
.vscode/
137
+# Generated files
138
+src/qgis_geonode/metadata.txt
139
+src/qgis_geonode/resources.py
src/qgis_geonode/utils.py
@@ -54,7 +54,14 @@ def remove_comments_from_sld(element):
54
def url_from_geoserver(base_url: str, raw_url: str):
55
56
# Clean the URL path from trailing and back slashes
57
- url_path = urlparse(raw_url).path.strip("/")
+ try:
58
+ url_path = urlparse(raw_url).path.strip("/")
59
+ except TypeError:
60
+ QgsMessageLog.logMessage(
61
+ "Incorrect type returned from GeoServer",
62
+ "GeoNode",
63
+ Qgis.Warning)
64
+ return None
65
66
url_path = url_path.split("/")
67
# re-join URL path without the geoserver path
0 commit comments