restore compat with libtmux < 0.17 (#75452)
This commit is contained in:
parent
9882ce8037
commit
f2e1d878c2
|
@ -391,7 +391,11 @@ else:
|
||||||
return cluster_name
|
return cluster_name
|
||||||
|
|
||||||
tmux = libtmux.Server()
|
tmux = libtmux.Server()
|
||||||
session = tmux.sessions.get(session_name=tmux_session_name)
|
|
||||||
|
try:
|
||||||
|
session = tmux.sessions.get(session_name=tmux_session_name)
|
||||||
|
except AttributeError:
|
||||||
|
session = tmux.find_where({'session_name': tmux_session_name})
|
||||||
|
|
||||||
status_window = session.attached_window
|
status_window = session.attached_window
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue