From eac8a31856171189889403f086109eceda50936f Mon Sep 17 00:00:00 2001 From: Simon Caminada Date: Mon, 17 Jun 2024 14:18:39 +0200 Subject: [PATCH] fix: add debug to filer archive --- src/project/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/project/views.py b/src/project/views.py index 67b9d8e..7acdaf9 100644 --- a/src/project/views.py +++ b/src/project/views.py @@ -114,6 +114,9 @@ class ArchiveFilerPublic(View): with zipfile.ZipFile('filer_public.zip', 'w', zipfile.ZIP_DEFLATED) as zipf: for root, dirs, files in os.walk(path): for file in files: - zipf.write(os.path.join(root, file), os.path.relpath(os.path.join(root, file), os.path.join(path, '..'))) + try: + zipf.write(os.path.join(root, file), os.path.relpath(os.path.join(root, file), os.path.join(path, '..'))) + except: + print(file) return HttpResponse('success')