diff --git a/powerline/bindings/wm/__init__.py b/powerline/bindings/wm/__init__.py index 130c0e4f..646b701a 100644 --- a/powerline/bindings/wm/__init__.py +++ b/powerline/bindings/wm/__init__.py @@ -25,12 +25,13 @@ def i3_subscribe(conn, event, callback): Function to run on event. ''' try: - import i3 + import i3ipc except ImportError: - pass - else: + import i3 conn.Subscription(callback, event) return + else: + pass conn.on(event, callback)