diff --git a/topostats/io.py b/topostats/io.py index 5679f288d9..eeb952dcb6 100644 --- a/topostats/io.py +++ b/topostats/io.py @@ -1026,6 +1026,7 @@ def get_data(self) -> None: self.image, self.pixel_to_nm_scaling = suffix_to_loader[suffix]() except Exception as e: if "Channel" in str(e) and "not found" in str(e): + LOGGER.warning(e) # log the specific error message LOGGER.warning(f"[{self.filename}] Channel {self.channel} not found, skipping image.") else: raise