diff --git a/scripts/translate.py b/scripts/translate.py index 4c8600168..9eda7b390 100644 --- a/scripts/translate.py +++ b/scripts/translate.py @@ -136,7 +136,9 @@ def translate_page( ) break # Exit loop if no errors except ValueError as e: - print(f"Translation check failed on attempt {attempt_no}/{MAX_ATTEMPTS}: {e}") + print( + f"Translation check failed on attempt {attempt_no}/{MAX_ATTEMPTS}: {e}" + ) continue # Retry if not reached max attempts else: # Max retry attempts reached print(f"Translation failed for {out_path} after {MAX_ATTEMPTS} attempts")