Skip to content

Commit

Permalink
Fix #142: raise InvalidProductError instead of log
Browse files Browse the repository at this point in the history
  • Loading branch information
jteulade committed May 15, 2024
1 parent 21f21ba commit 7a328a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eoreader/products/optical/vhr_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def _get_path(self, filename: str = "", extension: str = "") -> AnyPathType:
prod_path = next(self.path.glob(f"{filename}*.{extension}"))

except (FileNotFoundError, IndexError, StopIteration):
LOGGER.warning(
raise InvalidProductError(
f"No file corresponding to *{filename}*.{extension} found in {self.path}"
)

Expand Down

0 comments on commit 7a328a5

Please sign in to comment.