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:
parent
dea48cec13
commit
2ead43b8b7
@ -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,))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user