From 0b3f8af25f89e5857ba03b8b3018972aa25a5f1a Mon Sep 17 00:00:00 2001 From: Matthias Bernt Date: Tue, 23 Aug 2022 15:46:16 +0200 Subject: [PATCH] fix lint context fail function error introduced here https://github.com/galaxyproject/galaxy/pull/13186 found this while working on https://github.com/galaxyproject/planemo/pull/1264 --- lib/galaxy/tool_util/lint.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/galaxy/tool_util/lint.py b/lib/galaxy/tool_util/lint.py index 04aa7639f294..6df60089b52c 100644 --- a/lib/galaxy/tool_util/lint.py +++ b/lib/galaxy/tool_util/lint.py @@ -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