sertit / eoreader

Remote-sensing opensource python library reading optical and SAR sensors, loading and stacking bands, clouds, DEM and spectral indices in a sensor-agnostic way.
https://eoreader.readthedocs.io/en/latest/
Apache License 2.0
271 stars 22 forks source link

Fix #142: catch StopIteration and return InvalidProductError #143

Closed jteulade closed 1 month ago

jteulade commented 1 month ago

Your checklist for this pull request

Please review the guidelines for contributing to this repository.

Description

Please describe your pull request.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

Thank you!

jteulade commented 1 month ago

In other products, I found the same usecase with a StopIteration we should catch. I chose to add the fix here even if it's not for S2 products.