Merge remote-tracking branch 'origin/chat_and_cache' into websocket
This commit is contained in:
commit
e453a22361
1 changed files with 2 additions and 0 deletions
|
|
@ -167,6 +167,8 @@ class ChatManager:
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# Handle any exceptions that might occur
|
# Handle any exceptions that might occur
|
||||||
print(f"Error: {e}")
|
print(f"Error: {e}")
|
||||||
|
# send a message to the client
|
||||||
|
await self.send_message(client_id, f"Error: {e}")
|
||||||
raise e
|
raise e
|
||||||
finally:
|
finally:
|
||||||
self.disconnect(client_id)
|
self.disconnect(client_id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue