summaryrefslogtreecommitdiffstats
path: root/src/Gui
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
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')
-rw-r--r--src/Gui/CCDBusBackend.py6
-rw-r--r--src/Gui/CCDumpList.py5
-rw-r--r--src/Gui/CCMainWindow.py5
3 files changed, 12 insertions, 4 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)
diff --git a/src/Gui/CCDumpList.py b/src/Gui/CCDumpList.py
index 9833ad21..09191f51 100644
--- a/src/Gui/CCDumpList.py
+++ b/src/Gui/CCDumpList.py
@@ -23,8 +23,9 @@ class DumpList(list):
self.append(entry)
self.ddict[entry.getUUID()] = entry
except Exception, e:
- print e
- return
+ # FIXME handle exception better
+ # this is just temporary workaround for rhbz#543725
+ raise
else:
print "db == None!"
diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py
index f34ac2e6..88d931b4 100644
--- a/src/Gui/CCMainWindow.py
+++ b/src/Gui/CCMainWindow.py
@@ -195,7 +195,10 @@ class MainWindow():
try:
dumplist = getDumpList(self.ccdaemon, refresh=True)
except Exception, e:
- gui_error_message(_("Error while loading the dumplist, please check if abrt daemon is running\n %s" % e))
+ # there is something wrong with the daemon if we can get the dumplist
+ gui_error_message(_("Error while loading the dumplist.\n%s" % e))
+ # so we shouldn't continue..
+ sys.exit()
for entry in dumplist[::-1]:
try:
icon = get_icon_for_package(self.theme, entry.getPackageName())