From 0bfa13de5377552f9c507e272b89f66b707dd9d2 Mon Sep 17 00:00:00 2001 From: kirianguiller Date: Mon, 17 Oct 2022 17:12:56 -0500 Subject: [PATCH] fix: export empty conll --- app/samples/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/samples/controller.py b/app/samples/controller.py index 8c9c42c..53fafe5 100644 --- a/app/samples/controller.py +++ b/app/samples/controller.py @@ -193,7 +193,7 @@ def post(self, project_name: str): ] # gluing back the trees - sample_content["last"] = "\n".join(sample_content["last"]) + sample_content["last"] = "\n".join(sample_content.get("last", "")) samplecontentfiles.append(sample_content) else: