[tmux] Wrap the raise statement in _get_capacity