Skip to content

Commit

Permalink
Fix: 0 is no error code
Browse files Browse the repository at this point in the history
Co-authored-by: Jasper Craeghs <[email protected]>
  • Loading branch information
JokeWaumans and JasperCraeghs authored Dec 6, 2024
1 parent 3792ed6 commit 51b6afe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mlx/warnings/polyspace_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 51b6afe

Please sign in to comment.