Fix PyGI warnings

- Partially addresses #893
This commit is contained in:
Peter Šurda 2016-08-27 21:47:40 +08:00
parent d1a90085b7
commit 2616a9d4c1
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -1,10 +1,13 @@
from debug import logger
withMessagingMenu = False
try:
import gi
gi.require_version('MessagingMenu', '1.0')
from gi.repository import MessagingMenu
gi.require_version('Notify', '0.7')
from gi.repository import Notify
withMessagingMenu = True
except ImportError:
except (ImportError, ValueError):
MessagingMenu = None
try: