diff --git a/backend/workers/manage_extension.py b/backend/workers/manage_extension.py index 323aed7e..7a605c12 100644 --- a/backend/workers/manage_extension.py +++ b/backend/workers/manage_extension.py @@ -190,9 +190,10 @@ def unpack_from_zip(self, archive_path): with zipfile.ZipFile(archive_path, "r") as archive_file: archive_file.extractall(temp_name) except Exception as e: - archive_path.unlink() return self.extension_log.error(f"Could not extract extension zip archive {archive_path.name}: {e}. Cannot " f"install."), None + finally: + archive_path.unlink() return temp_name, extension_name