aboutsummaryrefslogtreecommitdiffstats
path: root/src/redshift-gtk/statusicon.py
diff options
context:
space:
mode:
authorJavier Cantero <jcantero@escomposlinux.org>2015-11-15 12:05:45 +0100
committerJavier Cantero <jcantero@escomposlinux.org>2015-11-15 12:05:45 +0100
commitae2e23325b883eb8b5d41c4d48751d75ed5a9a25 (patch)
tree456cabba5d0dad20a977494eb4d32fa173c36b15 /src/redshift-gtk/statusicon.py
parentMerge pull request #1 from javiercantero/warnings (diff)
downloadredshift-ng-ae2e23325b883eb8b5d41c4d48751d75ed5a9a25.tar.gz
redshift-ng-ae2e23325b883eb8b5d41c4d48751d75ed5a9a25.tar.bz2
redshift-ng-ae2e23325b883eb8b5d41c4d48751d75ed5a9a25.tar.xz
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.
Diffstat (limited to 'src/redshift-gtk/statusicon.py')
-rw-r--r--src/redshift-gtk/statusicon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redshift-gtk/statusicon.py b/src/redshift-gtk/statusicon.py
index 2974b77..5159437 100644
--- a/src/redshift-gtk/statusicon.py
+++ b/src/redshift-gtk/statusicon.py
@@ -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