diff --git a/stac/stac-generator/test/validator.py b/stac/stac-generator/test/validator.py index 0a3b0c7b..60c0df4d 100644 --- a/stac/stac-generator/test/validator.py +++ b/stac/stac-generator/test/validator.py @@ -65,7 +65,7 @@ def validate_item(item: pystac.item.Item): # Temporal assert "t" in item.properties["cube:dimensions"].keys() or "time" in item.properties["cube:dimensions"].keys() time = dict() - if "t" in item.properties["cube:dimensions"].keys() or "time" in item.properties["cube:dimensions"].keys(): + if "t" in item.properties["cube:dimensions"].keys(): time = item.properties["cube:dimensions"]["t"] else: time = item.properties["cube:dimensions"]["time"]