From ce8e67124487d5f7f762c24e6ef0353bd993086b Mon Sep 17 00:00:00 2001 From: Matthew Foster Date: Mon, 15 Apr 2024 11:45:05 -0700 Subject: [PATCH] default code_space --- ckanext/spatial/model/harvested_metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/spatial/model/harvested_metadata.py b/ckanext/spatial/model/harvested_metadata.py index 6929bf58..70ed8429 100644 --- a/ckanext/spatial/model/harvested_metadata.py +++ b/ckanext/spatial/model/harvested_metadata.py @@ -1698,7 +1698,7 @@ def get_fully_qualified_package_uri(self, uri_dict, default_code_space=None): if not uri_dict: return '' authority = uri_dict.get('authority') - code_space = uri_dict.get('code-space') or default_code_space + code_space = uri_dict.get('code-space') or default_code_space or '' code = uri_dict.get('code') version = uri_dict.get('version') if not code: