diff --git a/eoreader/products/optical/spot45_product.py b/eoreader/products/optical/spot45_product.py index 2939fcb7..e031f4bf 100644 --- a/eoreader/products/optical/spot45_product.py +++ b/eoreader/products/optical/spot45_product.py @@ -233,6 +233,8 @@ def _set_band_combi(self) -> None: """ root, _ = self.read_mtd() band_combi = root.findtext(".//SPECTRAL_PROCESSING") + if not band_combi: + raise InvalidProductError("SPECTRAL_PROCESSING not found in metadata!") if self.constellation == Constellation.SPOT4: self.band_combi = Spot4BandCombination.from_value(band_combi) else: