mirror of
https://github.com/powerline/powerline.git
synced 2025-07-30 09:15:19 +02:00
Merge pull request #1914 from Aurze/fix-1875
Fix for i3 if you have i3-py and i3ipc install
This commit is contained in:
commit
e3c34e7136
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user