fix: handle None from_entity in Context API RelationSummary by groksrc · Pull Request #166 · basicmachines-co/basic-memory · GitHub
Skip to content

fix: handle None from_entity in Context API RelationSummary - #166

Merged
groksrc merged 2 commits into
mainfrom
claude/issue-165-20250623_042800
Jun 25, 2025
Merged

fix: handle None from_entity in Context API RelationSummary#166
groksrc merged 2 commits into
mainfrom
claude/issue-165-20250623_042800

Conversation

@groksrc

@groksrc groksrc commented Jun 23, 2025

Copy link
Copy Markdown
Member

Add null check before accessing from_entity.title to prevent AttributeError when relations exist but referenced entities are deleted or inconsistent.

Follows the same pattern already used for to_entity handling.

Fixes #165

Generated with Claude Code

claude Bot and others added 2 commits June 23, 2025 04:30
Add null check before accessing from_entity.title to prevent AttributeError
when relations exist but referenced entities are deleted or inconsistent.
Follows the same pattern already used for to_entity handling.

Fixes #165

Co-authored-by: Drew Cain <groksrc@users.noreply.github.com>
Update typedef for RelationSummary

Signed-off-by: Drew Cain <groksrc@gmail.com>
@groksrc

groksrc commented Jun 24, 2025

Copy link
Copy Markdown
Member Author

@groksrc
groksrc merged commit 8a065c3 into main Jun 25, 2025
@groksrc
groksrc deleted the claude/issue-165-20250623_042800 branch June 25, 2025 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AttributeError: 'NoneType' object has no attribute 'title' in Context API

1 participant