diff --git a/bumblebee-status b/bumblebee-status index 1f94410..4745e40 100755 --- a/bumblebee-status +++ b/bumblebee-status @@ -42,6 +42,7 @@ def main(): inp.stop() sys.exit(0) except BaseException as e: + if not engine: raise module = engine.current_module() logging.exception(e) if output.started(): diff --git a/bumblebee/popup.py b/bumblebee/popup.py index 5a288c4..1142664 100644 --- a/bumblebee/popup.py +++ b/bumblebee/popup.py @@ -4,7 +4,10 @@ try: import Tkinter as tk except ImportError: # python 3 - import tkinter as tk + try: + import tkinter as tk + except ImportError: + pass import logging