1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

Using communicate instead of terminate (#459)

Fix kindlegen not clear temp files
This commit is contained in:
catsout
2023-01-21 18:00:04 +08:00
committed by GitHub
parent 4fa72780a1
commit 38b14fd734

View File

@@ -1224,7 +1224,8 @@ def makeMOBIWorker(item):
if kindlegenErrorCode > 0: if kindlegenErrorCode > 0:
break break
if ":I1036: Mobi file built successfully" in line: if ":I1036: Mobi file built successfully" in line:
output.terminate() output.communicate()
break
else: else:
# ERROR: EPUB too big # ERROR: EPUB too big
kindlegenErrorCode = 23026 kindlegenErrorCode = 23026