From aba58fc19d89c176e8eac6198b7861fed4ceb6bc Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Mon, 5 Jan 2026 19:30:38 +0100 Subject: [PATCH] Fix bug with `all_good` flag --- scripts/translation_fixer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/translation_fixer.py b/scripts/translation_fixer.py index c852c536d0..1a4c710a58 100644 --- a/scripts/translation_fixer.py +++ b/scripts/translation_fixer.py @@ -160,7 +160,8 @@ def fix_all(ctx: typer.Context, language: str): all_good = True for page in docs: doc_path = Path("docs") / language / "docs" / page - all_good = all_good and process_one_page(doc_path) + res = process_one_page(doc_path) + all_good = all_good and res if not all_good: raise typer.Exit(code=1) @@ -175,7 +176,8 @@ def fix_pages( ): all_good = True for path in doc_paths: - all_good = all_good and process_one_page(path) + res = process_one_page(path) + all_good = all_good and res if not all_good: raise typer.Exit(code=1)