# libtmux.exc.NotInsideTmux.__init__

- **Module:** libtmux.exc
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/exc.py#L139
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-exc-notinsidetmux-__init__/

```
libtmux.exc.NotInsideTmux.__init__(
    self,
    variable: str | None = None,
    args: object,
    reason: str = "unset or empty",
) -> None
```

## Parameters

- `variable` (`str | None`)
- `args` (`object`)
- `reason` (`str`)
