summaryrefslogtreecommitdiffstats
path: root/src/Gui/CCDBusBackend.py
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@localhost.localdomain>2009-12-03 13:24:44 +0100
committerJiri Moskovcak <jmoskovc@localhost.localdomain>2009-12-03 13:24:44 +0100
commit0a61fc7f255213412d8551a221e65a7af9b631be (patch)
tree8791a6ebcd282b59f33a139db46658515ac0bd38 /src/Gui/CCDBusBackend.py
parentb3ccd7f6d9a716e30039cdac92b338d1f70d9f8c (diff)
downloadabrt-0a61fc7f255213412d8551a221e65a7af9b631be.tar.gz
abrt-0a61fc7f255213412d8551a221e65a7af9b631be.tar.xz
abrt-0a61fc7f255213412d8551a221e65a7af9b631be.zip
GUI: handle cases when gui fails to start daemon on demand rhbz#543725
Diffstat (limited to 'src/Gui/CCDBusBackend.py')
-rw-r--r--src/Gui/CCDBusBackend.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Gui/CCDBusBackend.py b/src/Gui/CCDBusBackend.py
index c8b8ca8f..665f17a8 100644
--- a/src/Gui/CCDBusBackend.py
+++ b/src/Gui/CCDBusBackend.py
@@ -95,7 +95,11 @@ class DBusManager(gobject.GObject):
self.bus = dbus.SystemBus()
if not self.bus:
raise Exception(_("Can't connect to system dbus"))
- proxy = self.bus.get_object(CC_IFACE, CC_PATH, introspect=False)
+ try:
+ proxy = self.bus.get_object(CC_IFACE, CC_PATH, introspect=False)
+ except DBusException:
+ proxy = None
+ raise Exception("Can't connect to abrt daemon.")
if not proxy:
raise Exception(_("Please check if abrt daemon is running"))
daemon = dbus.Interface(proxy, dbus_interface=CC_IFACE)