Commit f48f0ff3 authored by Markus Lehtonen's avatar Markus Lehtonen Committed by Guido Günther

notify: catch RuntimeError when importing pynotify

Work around a problem in some distros (e.g. Fedora) where "import
pynotify" crashes in RuntimeError in some cases, e.g. when DISPLAY env
variable is not set.
Signed-off-by: 's avatarMarkus Lehtonen <>
parent 01470e12
......@@ -28,7 +28,7 @@ def enable_notifications():
import pynotify
notify_module = pynotify
except ImportError:
except (ImportError, RuntimeError):
return False
return notify_module.init("git-buildpackage")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment