Fallback if AppIndicator3 req. version unavailable

Catch in the except block the case when the required version of
Appindicator3 is not available to also fallback in GtkStatusIcon widget.
This commit is contained in:
Javier Cantero
2015-11-15 12:05:45 +01:00
parent dfe1263869
commit ae2e23325b
+1 -1
View File
@@ -37,7 +37,7 @@ from gi.repository import Gtk, GLib, GObject
try:
gi.require_version('AppIndicator3', '0.1')
from gi.repository import AppIndicator3 as appindicator
except ImportError:
except (ImportError, ValueError):
appindicator = None
from . import defs