I think we want to catch the exception with a try statement in SoftwarePropertiesGtk.py, but I don't know yet where is the sensible place to put it. The exception catching could be like this, using an error dialog function already defined there:
except PermissionDeniedByPolicy:
error(self.window_main, "Authorization failed.",
"Software sources can't be changed without permission.")
Thoughts in progress, not quite a patch, yet -
I think we want to catch the exception with a try statement in SoftwarePropert iesGtk. py, but I don't know yet where is the sensible place to put it. The exception catching could be like this, using an error dialog function already defined there:
except PermissionDenie dByPolicy: self.window_ main,
"Authorizati on failed.",
error(
"Software sources can't be changed without permission.")