Skip to content

Commit

Permalink
fix too many errors being reported
Browse files Browse the repository at this point in the history
  • Loading branch information
Walavouchey committed Aug 15, 2024
1 parent 42658c1 commit 7d4b05a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wikitools_cli/VERSION.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "2.3.1"
VERSION = "2.3.2"
4 changes: 2 additions & 2 deletions wikitools_cli/commands/check_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d4b05a

Please sign in to comment.