Skip to content

Commit e9a231b

Browse files
committed
Fixup translation generation: reset temp files
1 parent 54ba922 commit e9a231b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_validate/validate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,8 @@ def validateSubmission(submissionFilePath: str, verFilename: str) -> ValidationE
315315
raise ValueError(submissionData["URL"])
316316

317317
addonDestPath = os.path.join(TEMP_DIR, "addon.nvda-addon")
318-
os.remove(addonDestPath)
318+
if os.path.exists(addonDestPath):
319+
os.remove(addonDestPath)
319320
yield from downloadAddon(url=submissionData["URL"], destPath=addonDestPath)
320321

321322
checksumErrors = list(checkSha256(addonDestPath, expectedSha=submissionData["sha256"]))

0 commit comments

Comments
 (0)