add fix for handler exceptions

This commit is contained in:
harold 2025-04-19 09:35:34 +05:00
parent edaf3cd573
commit ebbe667c9d

View File

@ -22,13 +22,15 @@ async def handle_message_service(
): ):
return return
else: else:
result = gemini_helper.create_request_ai( try:
messages=MESSAGES_STORAGE_SCHEMA result = gemini_helper.create_request_ai(
) messages=MESSAGES_STORAGE_SCHEMA
sleep(60) )
MESSAGES_STORAGE_SCHEMA.chats = [] sleep(60)
if result.success is not None: if result.success is not None:
await success_publisher.publish(result) await success_publisher.publish(result)
finally:
MESSAGES_STORAGE_SCHEMA.chats = []