Resolve "Delete Files After Adding To Zip"

This commit is contained in:
jfriedli 2019-09-24 10:59:00 -07:00
parent 5570b38f6c
commit d9d4ebf3a2
3 changed files with 16 additions and 2 deletions

View file

@ -215,6 +215,7 @@ def create_app(test_config=None):
)
try:
cleaned_files_zip.write(complete_path)
os.remove(complete_path)
except ValueError:
abort(400, message='Creating the archive failed')