Skip to content

Commit 2eca970

Browse files
Fix Server.attached_sessions return type
1 parent 25bc68b commit 2eca970

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tmuxp/server.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,9 @@ def attached_sessions(self):
307307
else:
308308
continue
309309

310-
return attached_sessions or None
310+
return [
311+
Session(server=self, **s) for s in attached_sessions
312+
] or None
311313

312314
def has_session(self, target_session):
313315
"""Return True if session exists. ``$ tmux has-session``.

0 commit comments

Comments
 (0)