Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make runtime error warnings.warn instead #2088

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

cpacker
Copy link
Collaborator

@cpacker cpacker commented Nov 22, 2024

Silence:

  File "/Users/shub/Developer/MemGPT/letta/server/server.py", line 1489, in update_agent_core_memory
    save_agent(letta_agent, self.ms)
  File "/Users/shub/Developer/MemGPT/letta/agent.py", line 1604, in save_agent
    ms.update_agent(agent_state)
  File "/Users/shub/Developer/MemGPT/letta/utils.py", line 542, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/shub/Developer/MemGPT/letta/metadata.py", line 455, in update_agent
    del fields["_internal_memory"]
        ~~~~~~^^^^^^^^^^^^^^^^^^^^
KeyError: '_internal_memory'

@cpacker cpacker requested a review from sarahwooders November 22, 2024 04:42
@cpacker cpacker merged commit 27aa193 into main Nov 22, 2024
30 checks passed
@cpacker cpacker deleted the silence-internal-memory-bug branch November 22, 2024 04:50
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.

1 participant