No need for try/except

This commit is contained in:
Jip-Hop 2024-02-07 17:14:41 +01:00
parent a5d53c0a7b
commit d94a2aac7d
1 changed files with 1 additions and 3 deletions

View File

@ -434,9 +434,7 @@ def start_jail(jail_name, check_startup_enabled=False):
) )
) )
try: if subprocess.run(cmd).returncode != 0:
subprocess.run(cmd, check=True)
except subprocess.CalledProcessError:
fail( fail(
dedent( dedent(
f""" f"""