diff --git a/scos_actions/hardware/sigan_iface.py b/scos_actions/hardware/sigan_iface.py index 3cf339bb..23497414 100644 --- a/scos_actions/hardware/sigan_iface.py +++ b/scos_actions/hardware/sigan_iface.py @@ -83,14 +83,15 @@ def healthy(self, num_samples: int = 56000, retries: int = 3) -> bool: break except BaseException as e: retries -= 1 - logger.debug( - "Unable to acquire samples during health check. Retrying..." - ) if retries == 0: logger.exception( "Unable to acquire samples from device during health check." ) return False + else: + logger.debug( + "Unable to acquire samples during health check. Retrying..." + ) if not len(data) == num_samples: logger.error("Data length doesn't match request.")