Fix a backtrace when we try to use refresh-packagekit.py with an old daemon: catch all exceptions when we do StateHasChanged to fix rh#446331

This commit is contained in:
Richard Hughes 2008-05-14 09:16:07 +01:00
parent dea48cec13
commit 2ead43b8b7

View File

@ -35,7 +35,7 @@ def posttrans_hook(conduit):
'/org/freedesktop/PackageKit')
packagekit_iface = dbus.Interface(packagekit_proxy, 'org.freedesktop.PackageKit')
packagekit_iface.StateHasChanged('posttrans')
except dbus.DBusException, e:
except Exception, e:
conduit.info(2, "Unable to send message to PackageKit")
conduit.info(6, "%s" %(e,))