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 51b6afe commit 4ac22da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mlx/warnings/regex_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ def return_check_limits(self):
for checker in self.checkers.values():
padded_string = [f"{string:<20}" for string in [f"{checker.classification}: "]]
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 check(self, content):
Expand Down

0 comments on commit 4ac22da

Please sign in to comment.