From cbafeeab2fef3c0f26e4c8807626a84ebcce41f9 Mon Sep 17 00:00:00 2001 From: tappi287 Date: Wed, 13 Mar 2024 22:01:06 +0100 Subject: [PATCH] protected eel call with attribute check --- app/util/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/util/utils.py b/app/util/utils.py index c559a32..0c3b302 100644 --- a/app/util/utils.py +++ b/app/util/utils.py @@ -127,7 +127,8 @@ def test_exception(): def exception_event_loop(): if AppExceptionHook.event.is_set(): logging.warning('Reporting App exception to front end') - eel.app_exception(AppExceptionHook.gui_msg) + if hasattr(eel, 'app_exception'): + eel.app_exception(AppExceptionHook.gui_msg) AppExceptionHook.event.clear()