From 77d4cb3e8c5253066d1477ea750f02e88cb6aaa0 Mon Sep 17 00:00:00 2001 From: Ivor Bosloper Date: Fri, 13 Feb 2026 15:33:24 +0100 Subject: [PATCH] Avoid error with license=None --- vecorel_cli/create_stac.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vecorel_cli/create_stac.py b/vecorel_cli/create_stac.py index fbc4df7..017b02a 100644 --- a/vecorel_cli/create_stac.py +++ b/vecorel_cli/create_stac.py @@ -179,7 +179,7 @@ def create( stac["assets"]["data"]["type"] = media_type # Add license handling - license = collection.get("license", "").strip() + license = (collection.get("license") or "").strip() if license.lower() == "dl-de/by-2-0": stac["links"].append( {