# libtmux.server._fetch_or_empty

- **Module:** libtmux.server
- **Package:** libtmux
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux/blob/036c521c4b83ce6e434eb50afe2a0d08a6a05e46/src/libtmux/server.py#L65
- **Page:** https://libtmux.org/reference/py/libtmux-server-_fetch_or_empty/

```
libtmux.server._fetch_or_empty(server: Server, list_cmd: str, kwargs: t.Any) -> list[dict[str, t.Any]]
```

Wrap :func:`fetch_objs`: treat a not-yet-started server as empty.

A fresh :class:`~libtmux.Server` can be introspected via
:attr:`Server.sessions`, :attr:`Server.windows`, etc. before the
daemon is up. Other tmux errors, such as socket permission
failures, still propagate.
