Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,6 @@ dmypy.json
# Development
.idea/
.vscode/
# Generated files
src/qgis_geonode/metadata.txt
src/qgis_geonode/resources.py
9 changes: 8 additions & 1 deletion src/qgis_geonode/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@ def remove_comments_from_sld(element):
def url_from_geoserver(base_url: str, raw_url: str):

# Clean the URL path from trailing and back slashes
url_path = urlparse(raw_url).path.strip("/")
try:
url_path = urlparse(raw_url).path.strip("/")
except TypeError:
QgsMessageLog.logMessage(
"Incorrect type returned from GeoServer",
"GeoNode",
Qgis.Warning)
return None

url_path = url_path.split("/")
# re-join URL path without the geoserver path
Expand Down
Loading