diff --git a/src/mlx/warnings/polyspace_checker.py b/src/mlx/warnings/polyspace_checker.py index 6a1720f1..9ee0a140 100644 --- a/src/mlx/warnings/polyspace_checker.py +++ b/src/mlx/warnings/polyspace_checker.py @@ -119,7 +119,8 @@ def return_check_limits(self): padded_string = [f"{string:<30}" for string in [f"family {checker.family_value!r} ", f"{checker.column_name}: {checker.check_value} "]] count += checker.return_check_limits("".join(padded_string)) - print(f"Returning error code {count}.") + if count: + print(f"Returning error code {count}.") return count def parse_config(self, config):