Merge pull request #1 from zumayaaustin-creator/claude/youthful-planck-mxlkw8

Fix 500 error on dashboard load (/api/brain)
This commit is contained in:
zumayaaustin-creator 2026-06-23 05:08:23 -07:00 committed by GitHub
commit 208e174bbf
1 changed files with 2 additions and 1 deletions

View File

@ -139,7 +139,8 @@ def list_brain():
brain_data = {}
for f in files:
path = BASE_DIR / "brain" / f
brain_data[f] = read_file(path)
if path.is_file():
brain_data[f] = read_file(path)
return brain_data
@app.get("/api/brain/{file_name}")