Skip to content

Commit

Permalink
FIX: Fix iceye product when extent file (*.kml) not found. Use StopIt…
Browse files Browse the repository at this point in the history
…eration instead of IndexError
  • Loading branch information
jteulade committed Apr 9, 2024
1 parent 955c1fe commit 5c88524
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Release History

- FIX: Fix iceye product when extent file (*.kml) not found ([#135](https://github.com/sertit/eoreader/pull/135))

## 0.21.1 (2024-04-03)

- ENH: Add a `is_stacked` parameters for EOReader's `Product` to document either its bands are delivered stacked or file by file.
Expand Down
2 changes: 1 addition & 1 deletion eoreader/products/sar/iceye_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def wgs84_extent(self) -> gpd.GeoDataFrame:
# Open extent KML file
try:
extent_file = next(self.path.glob("*ICEYE*QUICKLOOK*.kml"))
except IndexError as ex:
except StopIteration as ex:
raise InvalidProductError(
f"Extent file (*.kml) not found in {self.path}"
) from ex
Expand Down

0 comments on commit 5c88524

Please sign in to comment.