diff --git a/src/Tools/updatecrowdin.py b/src/Tools/updatecrowdin.py index f8382290d8..9a1b728b06 100755 --- a/src/Tools/updatecrowdin.py +++ b/src/Tools/updatecrowdin.py @@ -448,6 +448,7 @@ def doFile(tsfilepath, targetpath, lncode, qrcpath): newname = basename + "_" + lncode + ".ts" newpath = targetpath + os.sep + newname if not os.path.exists(newpath): + # If this language code does not exist for the given TS file, bail out return shutil.copyfile(tsfilepath, newpath) if basename in GENERATE_QM: