Skip to content

Commit

Permalink
Using communicate instead of terminate (#459)
Browse files Browse the repository at this point in the history
Fix kindlegen not clear temp files
  • Loading branch information
catsout authored Jan 21, 2023
1 parent 4fa7278 commit 38b14fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kindlecomicconverter/comic2ebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38b14fd

Please sign in to comment.