Skip to content

Commit

Permalink
Fix: Filtering conversations with no created at (#6414)
Browse files Browse the repository at this point in the history
  • Loading branch information
tofarr authored Jan 23, 2025
1 parent 21e912d commit b19a33c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openhands/storage/conversation/file_conversation_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ async def get_metadata(self, conversation_id: str) -> ConversationMetadata:

# Temp: force int to str to stop pydandic being, well... pedantic
json_obj = json.loads(json_str)
if 'created_at' not in json_obj:
raise FileNotFoundError(path)
if isinstance(json_obj.get('github_user_id'), int):
json_obj['github_user_id'] = str(json_obj.get('github_user_id'))

Expand Down

0 comments on commit b19a33c

Please sign in to comment.