Skip to content

Commit 8424dca

Browse files
committed
fix bug with tmuxp kill-session
1 parent 9d9eb04 commit 8424dca

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tmuxp/cli.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ def subcommand_convert(args):
232232
print ('written new config to <%s>.' % (newfile))
233233

234234

235-
236235
def subcommand_attach_session(args):
237236
commands = []
238237
try:
@@ -264,11 +263,10 @@ def subcommand_kill_session(args):
264263
sessions = [s for s in t.sessions if s.get('session_name') == ctext]
265264

266265
if (len(sessions) == 1):
267-
proc = sessions[0].kill_session()
268-
if proc.stderr:
269-
print(proc.stderr)
270-
271-
print(proc.stdout)
266+
try:
267+
sessions[0].kill_session()
268+
except Exception as e:
269+
logger.error(e)
272270

273271

274272
def cli_parser():

0 commit comments

Comments
 (0)