From b19a33ccad13f3afbbee1deb962973ca1c426dee Mon Sep 17 00:00:00 2001 From: tofarr Date: Thu, 23 Jan 2025 15:09:57 -0700 Subject: [PATCH] Fix: Filtering conversations with no created at (#6414) --- openhands/storage/conversation/file_conversation_store.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openhands/storage/conversation/file_conversation_store.py b/openhands/storage/conversation/file_conversation_store.py index 249374c524d3..79e04921078e 100644 --- a/openhands/storage/conversation/file_conversation_store.py +++ b/openhands/storage/conversation/file_conversation_store.py @@ -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'))