Skip to content

Commit

Permalink
protected eel call with attribute check
Browse files Browse the repository at this point in the history
  • Loading branch information
tappi287 committed Mar 13, 2024
1 parent 22c1462 commit cbafeea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/util/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit cbafeea

Please sign in to comment.