Skip to content

Commit 543eb52

Browse files
authored
Avoid error with license=None (#19)
1 parent 50ac5e6 commit 543eb52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vecorel_cli/create_stac.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def create(
179179
stac["assets"]["data"]["type"] = media_type
180180

181181
# Add license handling
182-
license = collection.get("license", "").strip()
182+
license = (collection.get("license") or "").strip()
183183
if license.lower() == "dl-de/by-2-0":
184184
stac["links"].append(
185185
{

0 commit comments

Comments
 (0)