From 7d4b05a14b465b62d19df6c8edb7e45723bb18b6 Mon Sep 17 00:00:00 2001 From: Walavouchey <36758269+Walavouchey@users.noreply.github.com> Date: Thu, 15 Aug 2024 23:26:38 +0200 Subject: [PATCH] fix too many errors being reported --- wikitools_cli/VERSION.py | 2 +- wikitools_cli/commands/check_links.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wikitools_cli/VERSION.py b/wikitools_cli/VERSION.py index cbfab60..8e0257b 100644 --- a/wikitools_cli/VERSION.py +++ b/wikitools_cli/VERSION.py @@ -1 +1 @@ -VERSION = "2.3.1" +VERSION = "2.3.2" diff --git a/wikitools_cli/commands/check_links.py b/wikitools_cli/commands/check_links.py index 57c9850..1a1325e 100644 --- a/wikitools_cli/commands/check_links.py +++ b/wikitools_cli/commands/check_links.py @@ -124,10 +124,10 @@ def main(*args): errors = link_checker.check_article(a, redirects, articles, args.case_sensitive) if not args.to_sections_in_outdated_translations: - errors = filter_errors(lambda e: not (isinstance(e, error_types.MissingIdentifierError) and e.translation_outdated), errors) + errors = filter_errors(lambda e: not ((isinstance(e, error_types.MissingIdentifierError) or isinstance(e, error_types.BrokenRedirectIdentifierError)) and e.translation_outdated), errors) if not args.to_sections_in_missing_translations: - errors = filter_errors(lambda e: not (isinstance(e, error_types.MissingIdentifierError) and e.no_translation_available), errors) + errors = filter_errors(lambda e: not ((isinstance(e, error_types.MissingIdentifierError) or isinstance(e, error_types.BrokenRedirectIdentifierError)) and e.no_translation_available), errors) if not errors: continue