From 2067d3deefaf7c45c965838f5e6abb94f39d3d6e Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Thu, 24 Oct 2013 21:53:14 +0800 Subject: [PATCH] Fix bug where kill-session would request stderr. Fix bug where tab completion looked for sessions with no server on. --- tmuxp/cli.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tmuxp/cli.py b/tmuxp/cli.py index 0dc63711d3..44d5fc8cbb 100644 --- a/tmuxp/cli.py +++ b/tmuxp/cli.py @@ -432,8 +432,11 @@ def session_complete(command, commands, ctext): commands[:] = [] ctext_subargs = ctext.replace(command + ' ', '') - sessions = [s.get('session_name') for s in t._sessions] - commands.extend([c for c in sessions if ctext_subargs in c]) + try: + sessions = [s.get('session_name') for s in t._sessions] + commands.extend([c for c in sessions if ctext_subargs in c]) + except Exception: + pass def config_complete(command, commands, ctext): if ctext.startswith(command + ' '):