diff --git a/cads_api_client/processing.py b/cads_api_client/processing.py index 621fab1..4f12243 100644 --- a/cads_api_client/processing.py +++ b/cads_api_client/processing.py @@ -243,6 +243,8 @@ def wait_on_result(self, retry_options: dict[str, Any] = {}) -> None: sleep *= 1.5 if sleep > self.sleep_max: sleep = self.sleep_max + elif status == "dismissed": + raise ProcessingFailedError(f"API state {status!r}") else: raise ProcessingFailedError(f"Unknown API state {status!r}") self.debug(f"result not ready, waiting for {sleep} seconds")