mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-21 01:31:06 +01:00
Fix
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user