python/ray/state.py
def _check_connected(self):
        """Ensure that the object has been initialized before it is used.

        This lazily initializes clients needed for state accessors.

        Raises:
            RuntimeError: An exception is raised if ray.init() has not been
                called yet.
        """
        if self.gcs_options is not None and self.global_state_accessor is None:
            self._really_init_global_state()

        # _really_init_global_state should have set self.global_state_accessor
        if self.global_state_accessor is None:
            raise ray.exceptions.RaySystemError(
                "Ray has not been started yet. You can start Ray with 'ray.init()'."
            )
Ensure that the object has been initialized before it is used.

        This lazily initializes clients needed for state accessors.

        Raises:
            RuntimeError: An exception is raised if ray.init() has not been
                called yet.
        
Ensure that the object has been initialized before it is used.
This lazily initializes clients needed for state accessors.
Ensure that the object has been initialized before it is used . This lazily initializes clients needed for state accessors .
def _check_connected(self):
        if self.gcs_options is not None and self.global_state_accessor is None:
            self._really_init_global_state()
        if self.global_state_accessor is None:
            raise ray.exceptions.RaySystemError(
                "Ray has not been started yet. You can start Ray with 'ray.init()'."
            )
def _check_connected ( self ) : if self . gcs_options is not None and self . global_state_accessor is None : self . _really_init_global_state ( ) if self . global_state_accessor is None : raise ray . exceptions . RaySystemError ( "Ray has not been started yet. You can start Ray with 'ray.init()'." )
Ensure that the object has been initialized before it is used.
Ensure that the object has been initialized before it is used .
"""Ensure that the object has been initialized before it is used.

        This lazily initializes clients needed for state accessors.

        Raises:
            RuntimeError: An exception is raised if ray.init() has not been
                called yet.
        """ # _really_init_global_state should have set self.global_state_accessor
An exception is raised if ray.init() has not been
called yet.
An exception is raised if ray . init () has not been called yet .
RuntimeError
self