Skip to content

Conversation

@majiayu000
Copy link

Summary

  • Added null check for existing_memory before accessing .payload
  • Raises clear ValueError when memory_id does not exist
  • Fixed both sync and async versions of _delete_memory

Test plan

  • Added unit test for delete with non-existent memory_id
  • All existing memory tests pass

Fixes #3849

- Added null check for existing_memory before accessing payload
- Raises clear ValueError when memory_id does not exist
- Fixed both sync and async versions of _delete_memory
- Added test to verify proper error handling

Fixes mem0ai#3849

Signed-off-by: majiayu000 <[email protected]>
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.

# Bug Report: memory.delete() fails with AttributeError: 'NoneType' object has no attribute 'payload' when using Qdrant

1 participant