After racking my brains thinking this had to do with deb822, I found that a Dbus exception was being suppressed by only logging one particular exception. Disabling the catch with
--->
def on_remove_clicked(self, widget):
"""Remove the selected source"""
model = self.treeview_sources.get_model()
(path, column) = self.treeview_sources.get_cursor()
iter = model.get_iter(path)
if iter: source_entry = model.get_value(iter, LIST_ENTRY_OBJ)
#try: self.backend.RemoveSource(str(source_entry))
#except dbus.DBusException as e:
# maybe_log_authentication_canceled_error(e)
<---
reveals the issue:
--->
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 1159, in on_remove_clicked
self.backend.RemoveSource(str(source_entry))
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in __call__
return self._connection.call_blocking(self._named_service, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 634, in call_blocking
reply_message = self.send_message_with_reply_and_block( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dbus.exceptions.DBusException: com.ubuntu.SoftwareProperties.PermissionDeniedByPolicy: com.ubuntu.softwareproperties.applychanges
<---
After racking my brains thinking this had to do with deb822, I found that a Dbus exception was being suppressed by only logging one particular exception. Disabling the catch with
---> clicked( self, widget): sources. get_model( ) sources. get_cursor( ) iter(path)
source_ entry = model.get_ value(iter, LIST_ENTRY_OBJ)
self. backend. RemoveSource( str(source_ entry)) authentication_ canceled_ error(e)
def on_remove_
"""Remove the selected source"""
model = self.treeview_
(path, column) = self.treeview_
iter = model.get_
if iter:
#try:
#except dbus.DBusException as e:
# maybe_log_
<---
reveals the issue:
---> python3/ dist-packages/ softwarepropert ies/gtk/ SoftwarePropert iesGtk. py", line 1159, in on_remove_clicked backend. RemoveSource( str(source_ entry)) python3/ dist-packages/ dbus/proxies. py", line 141, in __call__ n.call_ blocking( self._named_ service,
^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^ python3/ dist-packages/ dbus/connection .py", line 634, in call_blocking message_ with_reply_ and_block(
^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^ .DBusException: com.ubuntu. SoftwarePropert ies.PermissionD eniedByPolicy: com.ubuntu. softwarepropert ies.applychange s
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
return self._connectio
File "/usr/lib/
reply_message = self.send_
dbus.exceptions
<---