Skip to content

Commit c92661b

Browse files
committed
chore(run_before_script): Manual fix
src/tmuxp/util.py:54:9: TRY300 Consider moving this statement to an `else` block
1 parent 71a2f6c commit c92661b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tmuxp/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ def run_before_script(
5151
os.path.abspath(script_file), # NOQA: PTH100
5252
stderr_str,
5353
)
54-
return proc.returncode
5554
except OSError as e:
5655
if e.errno == 2:
5756
raise exc.BeforeLoadScriptNotExists(
5857
e,
5958
os.path.abspath(script_file), # NOQA: PTH100
6059
) from e
6160
raise
61+
return proc.returncode
6262

6363

6464
def oh_my_zsh_auto_title() -> None:

0 commit comments

Comments
 (0)