Skip to content

Commit

Permalink
use href is absolute is none (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago authored Oct 11, 2023
1 parent ea9200b commit f79913e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

# 6.2.3 (2023-10-11)

* in `STACReader` use `href` if `get_absolute_href()` returns `None`

# 6.2.2 (2023-10-05)

* add list of assets in `InvalidAssetName` message in `STACReader`
Expand Down
2 changes: 1 addition & 1 deletion rio_tiler/io/stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def _get_asset_info(self, asset: str) -> AssetInfo:
extras = asset_info.extra_fields

info = AssetInfo(
url=asset_info.get_absolute_href(),
url=asset_info.get_absolute_href() or asset_info.href,
metadata=extras,
)

Expand Down

0 comments on commit f79913e

Please sign in to comment.