Tools: Add check for existence in updatecrowdin.py (#11304)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user