code: def stop_discovery(self):
          
          try:
              self._adapter.StopDiscovery()
          except dbus.exceptions.DBusException as e:
              if (e.get_dbus_name() == 'org.bluez.Error.Failed') and (e.get_dbus_message() == 'No discovery started'):
                  pass
              else:
                  raise _error_from_dbus_error(e)
docs: Stops the discovery started with `start_discovery`