Skip to content

Commit

Permalink
Merge pull request #14496 from bernt-matthias/topic/lint_level
Browse files Browse the repository at this point in the history
[22.01] fix lint context fail function
  • Loading branch information
mvdbeek authored Aug 23, 2022
2 parents 0a69d3d + 0b3f8af commit 7a9e83c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/galaxy/tool_util/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,9 @@ def warn(self, message: str, *args, **kwargs) -> None:
def failed(self, fail_level: Union[LintLevel, str]) -> bool:
if isinstance(fail_level, str):
fail_level = LintLevel[fail_level.upper()]

found_warns = self.found_warns
found_errors = self.found_errors
if fail_level >= LintLevel.WARN:
if fail_level == LintLevel.WARN:
lint_fail = (found_warns or found_errors)
elif fail_level >= LintLevel.ERROR:
lint_fail = found_errors
Expand Down

0 comments on commit 7a9e83c

Please sign in to comment.