Skip to content

Commit

Permalink
fix: handle already existing collection JSON (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Jacombs authored Jul 4, 2023
1 parent 0a28d6f commit 7a26bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/collection_from_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def main() -> None:
):
item_stac = json.loads(result["Body"].read().decode("utf-8"))

if not arguments.collection_id == item_stac["collection"]:
if not arguments.collection_id == item_stac.get("collection"):
get_log().trace(
"skipping: item.collection != collection.id",
file=key,
Expand Down

0 comments on commit 7a26bae

Please sign in to comment.