Properly cleanup after conversion

This commit is contained in:
Micah Lee 2021-12-14 12:29:55 -08:00
parent 17e1121e57
commit d8adb2e9cc
No known key found for this signature in database
GPG key ID: 403C2657CD994F73

View file

@ -135,7 +135,7 @@ def convert(input_filename, output_filename, ocr_lang, stdout_callback):
success = True
# Clean up
shutil.rmtree(tmpdir.name)
tmpdir.cleanup()
return success