Skip to content

Commit f15cb7e

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 7141bfa commit f15cb7e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/tmuxp/util.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,14 @@ def run_before_script(
5151
os.path.abspath(script_file), # NOQA: PTH100
5252
stderr_str,
5353
)
54-
else:
55-
return proc.returncode
5654
except OSError as e:
5755
if e.errno == 2:
5856
raise exc.BeforeLoadScriptNotExists(
5957
e,
6058
os.path.abspath(script_file), # NOQA: PTH100
6159
) from e
62-
else:
63-
raise
60+
raise
61+
return proc.returncode
6462

6563

6664
def oh_my_zsh_auto_title() -> None:

0 commit comments

Comments
 (0)