For future reference, the exception is raised here, in the code:

  http://bazaar.launchpad.net/~ubuntu-core-dev/software-
properties/main/view/head:/softwareproperties/dbus/SoftwarePropertiesDBus.py#L356

The last line of this block:

  if not is_auth:
              logging.debug('_check_polkit_privilege: sender %s on connection 
%s pid %i is not authorized for %s: %s' %
                      (sender, conn, pid, privilege, str(details)))
              self.AuthFailed()
              raise PermissionDeniedByPolicy(privilege)

I don't know enough about python error handling, right now.  I tried
just commenting out the "raise" line, but that did not seem to be
enough.  The behaviour didn't seem to change at all, though, so perhaps
I got the whole thing wrong.

Anyone here very familiar with to handling python exceptions quietly?
This could be a very easy fix for someone with experience.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/828850

Title:
  software-properties-gtk crashed with DBusException in call_blocking():
  com.ubuntu.SoftwareProperties.PermissionDeniedByPolicy:
  com.ubuntu.softwareproperties.applychanges

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/828850/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to