diff --git a/dangerzone/container.py b/dangerzone/container.py index 442e5010e..82ffc26f3 100644 --- a/dangerzone/container.py +++ b/dangerzone/container.py @@ -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