Fix crash on import with desktop notifications when python-gobject is available, but no notification daemon is running.
This commit is contained in:
parent
8bd6fb45e3
commit
4d24b17e2b
@ -33,7 +33,7 @@ try:
|
||||
import gi
|
||||
gi.require_version('Notify', '0.7')
|
||||
from gi.repository import Notify
|
||||
except ImportError:
|
||||
except ImportError, ValueError:
|
||||
pass
|
||||
else:
|
||||
if not Notify.init("i3pystatus"):
|
||||
|
Loading…
Reference in New Issue
Block a user