diff options
author | Jiri Moskovcak <jmoskovc@localhost.localdomain> | 2009-12-03 13:24:44 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@localhost.localdomain> | 2009-12-03 13:24:44 +0100 |
commit | 0a61fc7f255213412d8551a221e65a7af9b631be (patch) | |
tree | 8791a6ebcd282b59f33a139db46658515ac0bd38 /src/Gui/CCDBusBackend.py | |
parent | b3ccd7f6d9a716e30039cdac92b338d1f70d9f8c (diff) | |
download | abrt-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.py | 6 |
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) |