From 38b14fd734bd1df1a2347e1690711db0401f175b Mon Sep 17 00:00:00 2001 From: catsout <36527596+catsout@users.noreply.github.com> Date: Sat, 21 Jan 2023 18:00:04 +0800 Subject: [PATCH] Using communicate instead of terminate (#459) Fix kindlegen not clear temp files --- kindlecomicconverter/comic2ebook.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index aa035d2..1119a20 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -1224,7 +1224,8 @@ def makeMOBIWorker(item): if kindlegenErrorCode > 0: break if ":I1036: Mobi file built successfully" in line: - output.terminate() + output.communicate() + break else: # ERROR: EPUB too big kindlegenErrorCode = 23026