Skip to content

Commit

Permalink
check for ext
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Sep 10, 2024
1 parent 92b5174 commit fee4b98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rio_tiler/io/stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fee4b98

Please sign in to comment.