=== modified file 'mandos-ctl' --- mandos-ctl 2020-01-12 01:44:43 +0000 +++ mandos-ctl 2020-01-12 01:53:04 +0000 @@ -1632,7 +1632,7 @@ finally: dbus_logger.removeFilter(counting_handler) - self.assertNotIsInstance(e, dbus.ConnectFailed) + self.assertNotIsInstance(e.exception, dbus.ConnectFailed) # Make sure the dbus logger was suppressed self.assertEqual(0, counting_handler.count) @@ -1775,7 +1775,7 @@ self.call_method(bus, "methodname", "busname", "objectpath", "interface") - self.assertNotIsInstance(e, dbus.ConnectFailed) + self.assertNotIsInstance(e.exception, dbus.ConnectFailed) def test_get_converts_to_correct_exception(self): bus = pydbus_adapter.SystemBus(