We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1fd04f commit 3fa69dcCopy full SHA for 3fa69dc
tmuxp/cli.py
@@ -332,9 +332,16 @@ def command_freeze(args):
332
colors=args.colors
333
)
334
335
- session = t.findWhere({
336
- 'session_name': ctext
337
- })
+ try:
+ session = t.findWhere({
+ 'session_name': ctext
338
+ })
339
+
340
+ if not session:
341
+ raise exc.TmuxpException('Session not found.')
342
+ except exc.TmuxpException as e:
343
+ print(e)
344
+ return
345
346
sconf = freeze(session)
347
configparser = kaptan.Kaptan()
0 commit comments