From 1a2fa787b6c9f2dc2f53eca6f20e4060ea7d7f2c Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Wed, 10 Apr 2024 09:52:04 +0200 Subject: [PATCH] finel fix --- events/lollms_chatbox_events.py | 3 +++ lollms_core | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/events/lollms_chatbox_events.py b/events/lollms_chatbox_events.py index a52b4008..17dcacfb 100644 --- a/events/lollms_chatbox_events.py +++ b/events/lollms_chatbox_events.py @@ -96,6 +96,9 @@ def add_events(sio:socketio): def take_picture(sid): try: client = lollmsElfServer.session.get_client(sid) + if client is None: + lollmsElfServer.error("Client not recognized.\nTry refreshing the page") + return lollmsElfServer.info("Loading camera") if not PackageManager.check_package_installed("cv2"): PackageManager.install_package("opencv-python") diff --git a/lollms_core b/lollms_core index 4dbc3b72..adef9a41 160000 --- a/lollms_core +++ b/lollms_core @@ -1 +1 @@ -Subproject commit 4dbc3b724558b2f2b90cabc98e7351175aee1acc +Subproject commit adef9a41123c6b296a2e486324e8fd7795d6e605