Skip to content

Commit aee2c86

Browse files
committed
Fail in script when pull fails
1 parent 3d4eae6 commit aee2c86

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

manage_translation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ def fetch():
3030
sys.stderr.write("The Transifex client app is required (pip install transifex-client).\n")
3131
exit(1)
3232
lang = LANGUAGE
33-
call(f'tx pull -l {lang} --minimum-perc=1 --use-git-timestamps', shell=True)
33+
pull_returncode = call(f'tx pull -l {lang} --minimum-perc=1 --use-git-timestamps', shell=True)
34+
if pull_returncode != 0:
35+
exit(pull_returncode)
3436
for root, _, po_files in os.walk('.'):
3537
for po_file in po_files:
3638
if not po_file.endswith(".po"):

0 commit comments

Comments
 (0)