From 61aaba74fdcad11cd7e6ad718b6f5b9cc9239d40 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Thu, 9 Nov 2023 12:24:54 -0600 Subject: [PATCH] Tools: Add check for existence in updatecrowdin.py (#11304) --- src/Tools/updatecrowdin.py | 1 + 1 file changed, 1 insertion(+) 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: