142
# we check whether the name is owned first, to avoid race conditions
143
# with service activation; once it's owned, wait until we can actually
142
145
while timeout > 0:
144
p = dbus.Interface(bus.get_object(dest, path),
145
dbus_interface=dbus.INTROSPECTABLE_IFACE)
148
except dbus.exceptions.DBusException as e:
150
if '.UnknownInterface' in str(e):
146
if bus.name_has_owner(dest):
148
p = dbus.Interface(bus.get_object(dest, path),
149
dbus_interface=dbus.INTROSPECTABLE_IFACE)
152
except dbus.exceptions.DBusException as e:
154
if '.UnknownInterface' in str(e):