From cfbb1b54bc99ac68be4c98f0fa5d370518ea2b2f Mon Sep 17 00:00:00 2001 From: Walker Arce Date: Wed, 13 Apr 2022 12:18:44 -0500 Subject: [PATCH] Fixes #12 Bump patch number --- session_manager_ui.py | 13 ++++++++----- ui_params.py | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/session_manager_ui.py b/session_manager_ui.py index b73f831..ca0659c 100644 --- a/session_manager_ui.py +++ b/session_manager_ui.py @@ -228,11 +228,14 @@ def on_press(self, key): else: print("INFO: Typing outside window") except AttributeError: - # Only process key input if the main window has focus, otherwise ignore - if self.root.focus_get(): - self.handle_global_press(key) - else: - print("INFO: Typing outside window") + try: + # Only process key input if the main window has focus, otherwise ignore + if self.root.focus_get(): + self.handle_global_press(key) + else: + print("INFO: Typing outside window") + except KeyError as e: + print(f"ERROR: Exception encountered when processing key {str(e)}") def on_release(self, key): pass diff --git a/ui_params.py b/ui_params.py index 77362d1..1618845 100644 --- a/ui_params.py +++ b/ui_params.py @@ -1,4 +1,4 @@ -cometrics_version = "1.0.6" +cometrics_version = "1.0.7" ui_title = f"cometrics v{cometrics_version}" cometrics_data_root = fr'C:\cometrics'