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>
Thu, 12 Jun 2014 09:04:09 +0000 (12:04 +0300)
commit0233ab89ba59925ffd627735f1b37ac0bc8cda86
tree612575208094769e295402a232b7252ce147ab94
parent46999caf5a9cfb4b91d9bc768bf7cea6de64612d
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