File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -260,12 +260,11 @@ def session_info(
260260 session_paths .append (Path (session ))
261261 session_path = next (filter (lambda path : path .is_file (), session_paths ), None )
262262
263- if not session_path :
264- tried = or_phrase ([str (p .resolve ()) for p in session_paths ])
265- error (f"could not find session file at { tried } " )
266- sys .exit (1 )
267-
268- return (Profile (profile_name or session_path .stem , ** vars (context )), session_path )
263+ if session_path :
264+ return (Profile (profile_name or session_path .stem , ** vars (context )), session_path )
265+ tried = or_phrase ([str (p .resolve ()) for p in session_paths ])
266+ error (f"could not find session file at { tried } " )
267+ sys .exit (1 )
269268
270269
271270def exit_with (result : bool ) -> NoReturn :
You can’t perform that action at this time.
0 commit comments