From fee4b981a53c230eb2e4e33eb5330ef05c10818c Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Tue, 10 Sep 2024 14:59:18 +0200 Subject: [PATCH] check for ext --- rio_tiler/io/stac.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rio_tiler/io/stac.py b/rio_tiler/io/stac.py index 82d5d5e8..6887efff 100644 --- a/rio_tiler/io/stac.py +++ b/rio_tiler/io/stac.py @@ -259,7 +259,7 @@ def __attrs_post_init__(self): self.bounds = self.item.bbox self.crs = WGS84_CRS - if self.item.ext.has("proj"): + if hasattr(self.item, "ext") and self.item.ext.has("proj"): if all( [ self.item.ext.proj.transform,