Skip to content

Commit

Permalink
FIX: Fix an unknown Planet bug that just appeared (`'...Path' has no …
Browse files Browse the repository at this point in the history
…len()`)
  • Loading branch information
remi-braun committed Jul 29, 2024
1 parent a2c7992 commit eeede8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- FIX: Force the loading of `DimapV1` bands in `float32`
- FIX: Handle the case where fiona isn't installed anymore (with `geopandas 1.0`)
- FIX: Don't make `pystac` a mandatory requirement
- FIX: Fix an unknown Planet bug that just appeared (`'...Path' has no len()`)
- OPTIM: Search correctly nested metadata in the Reader (without accidentally using a recursive glob)
- CI: Fix S3 endpoint management with `sertit>=1.37`

Expand Down
2 changes: 1 addition & 1 deletion eoreader/products/optical/pla_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def _get_stack_path(self, as_list: bool = False) -> Union[str, list]:
"Analytic", "tif", invalid_lookahead="udm", as_list=as_list
)

if len(stack_path) < 1:
if as_list and len(stack_path) < 1:
raise InvalidProductError("This is not a Planet Product.")

return stack_path
Expand Down

0 comments on commit eeede8c

Please sign in to comment.