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
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