🐛 temporarily encapsulate message_callback's inside logic inside a try/catch

This commit is contained in:
Laureηt 2023-10-21 10:26:17 +00:00
parent f92a20b2c5
commit 95c751ea30
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI

View file

@ -108,6 +108,7 @@ class LLMClient(AsyncClient):
event (`RoomMessageText`):
The message event.
"""
try:
logger.debug(f"New RoomMessageText: {event.source}")
# ignore messages pre-dating our spawn time
@ -219,6 +220,8 @@ class LLMClient(AsyncClient):
# stop typing indicator loop
typing_task.cancel()
except Exception as e:
logger.error(f"Exception in message_callback: {e}")
async def start(
self,