add fix for handler exceptions
This commit is contained in:
parent
edaf3cd573
commit
ebbe667c9d
@ -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 = []
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user