From 6d4968571592274c084675486919a49e1edbb89c Mon Sep 17 00:00:00 2001 From: Bernhard B Date: Fri, 31 May 2019 18:19:37 +0200 Subject: [PATCH] improved error handling * log a warning message in case tkinter is not installed --- bumblebee/popup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bumblebee/popup.py b/bumblebee/popup.py index 1142664..5c1c405 100644 --- a/bumblebee/popup.py +++ b/bumblebee/popup.py @@ -1,5 +1,7 @@ """Pop-up menus.""" +import logging + try: import Tkinter as tk except ImportError: @@ -7,9 +9,7 @@ except ImportError: try: import tkinter as tk except ImportError: - pass - -import logging + logging.warning("failed to import tkinter - bumblebee popups won't work!") class PopupMenu: """The popup-menu."""