notify: catch RuntimeError when importing pynotify
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 12 Jun 2014 09:04:09 +0000 (12:04 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 14 Nov 2014 12:21:38 +0000 (14:21 +0200)
commit075beda4e48a855764c0367efa8a625a063a3735
tree48d009c8421f5478fe4f8e106cab0077db7292da
parent18d64b7fd5ec4b3297e79e84e58ec5b5ee5a5aff
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: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/notifications.py