Пример #1
0
    def stats(self) -> ba.Stats:
        """The stats instance accessible while the activity is running.

        If access is attempted before or after, raises a ba.NotFoundError.
        """
        if self._stats is None:
            from ba._error import NotFoundError
            raise NotFoundError()
        return self._stats
Пример #2
0
 def lobby(self) -> ba.Lobby:
     """The chooser's ba.Lobby."""
     lobby = self._lobby()
     if lobby is None:
         raise NotFoundError('Lobby does not exist.')
     return lobby