From f2e1d878c253e48cfa51c7565abf5ff149b5394b Mon Sep 17 00:00:00 2001 From: Emmanuel Cazenave Date: Wed, 15 Mar 2023 14:27:43 +0100 Subject: [PATCH] restore compat with libtmux < 0.17 (#75452) --- eoptasks.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eoptasks.py b/eoptasks.py index 7e487c3..bc5c430 100755 --- a/eoptasks.py +++ b/eoptasks.py @@ -391,7 +391,11 @@ else: return cluster_name 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