From ed4e8533c21301ea9e538f0d392c87454320b05f Mon Sep 17 00:00:00 2001 From: JWM <62558419+JokeWaumans@users.noreply.github.com> Date: Fri, 6 Dec 2024 12:58:10 +0100 Subject: [PATCH] Fix: 0 is no error code Co-authored-by: Jasper Craeghs <28319872+JasperCraeghs@users.noreply.github.com> --- src/mlx/warnings/robot_checker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mlx/warnings/robot_checker.py b/src/mlx/warnings/robot_checker.py index ef846c5c..9dc57e6e 100644 --- a/src/mlx/warnings/robot_checker.py +++ b/src/mlx/warnings/robot_checker.py @@ -91,7 +91,8 @@ def return_check_limits(self): else: string = "all test suites" count += checker.return_check_limits(f"{string:<30}") - print(f"Returning error code {self.count}.") + if count: + print(f"Returning error code {count}.") return count def parse_config(self, config):