Tools: Add check for existence in updatecrowdin.py (#11304)

This commit is contained in:
Chris Hennes
2023-11-09 12:24:54 -06:00
committed by GitHub
parent f25af97811
commit 61aaba74fd

View File

@@ -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: