mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-05-11 02:35:18 -04:00
Resolve "Delete Files After Adding To Zip"
This commit is contained in:
parent
5570b38f6c
commit
d9d4ebf3a2
3 changed files with 16 additions and 2 deletions
1
main.py
1
main.py
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue