diff --git a/eoreader/products/optical/vhr_product.py b/eoreader/products/optical/vhr_product.py index 8f5e7c24..f004dc5f 100644 --- a/eoreader/products/optical/vhr_product.py +++ b/eoreader/products/optical/vhr_product.py @@ -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}" )