diff --git a/scripts/translator.py b/scripts/translator.py index aeede9d04..333a40003 100644 --- a/scripts/translator.py +++ b/scripts/translator.py @@ -102,6 +102,10 @@ def commit_and_push(translate_files, branch): # Print stdout and stderr (if any) if result.stdout: print(f"STDOUT for {cmd}:\n{result.stdout}") + if "nothing to commit" in result.stdout.lower(): + print("Nothing to commit, leaving") + exit(0) + if result.stderr: print(f"STDERR for {cmd}:\n{result.stderr}")