def bus_get_object(bus, object_path, service_name=None):
 name = (service_name or BUS_NAME)
 try:
  return bus.get_object(name, object_path, introspect=False)
 except dbus.exceptions.DBusException as e:
  if (e.get_dbus_name() in (DBUS_SERVICE_UNKNOWN, DBUS_EXEC_FAILED, DBUS_NO_REPLY)):
   raise SecretServiceNotAvailableException(e.get_dbus_message())
  raise

def bus_get_object ( bus , object_path , service_name = None ) : name = ( service_name or BUS_NAME ) try : return bus . get_object ( name , object_path , introspect = False ) except dbus . exceptions . DBusException as e : if ( e . get_dbus_name ( ) in ( DBUS_SERVICE_UNKNOWN , DBUS_EXEC_FAILED , DBUS_NO_REPLY ) ) : raise SecretServiceNotAvailableException ( e . get_dbus_message ( ) ) raise
a wrapper around :meth:sessionbus .