From 265b2143a9fcb088054f511487102e820cdea920 Mon Sep 17 00:00:00 2001 From: Zvonimir Sabljic Date: Thu, 10 Aug 2023 08:42:39 +0200 Subject: [PATCH] Fix --- euclid/helpers/Project.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/euclid/helpers/Project.py b/euclid/helpers/Project.py index 61157de..bf98a40 100644 --- a/euclid/helpers/Project.py +++ b/euclid/helpers/Project.py @@ -83,9 +83,15 @@ class Project: def get_files(self, files): files_with_content = [] for file in files: + # TODO this is a hack, fix it + try: + file_content = open(self.get_full_file_path('', file), 'r').read() + except: + file_content = '' + files_with_content.append({ "path": file, - "content": open(self.get_full_file_path('', file), 'r').read() + "content": file_content }) return files_with_content