Update run_program to avoid linting warnings

This commit is contained in:
2Shirt 2023-07-08 18:10:59 -07:00
parent 6a1cf98d0b
commit 0ace951380
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -256,8 +256,9 @@ def run_program(
pipe=pipe,
shell=shell,
**kwargs)
check = cmd_kwargs.pop('check', True) # Avoids linting warning
try:
proc = subprocess.run(**cmd_kwargs)
proc = subprocess.run(check=check, **cmd_kwargs)
except FileNotFoundError:
LOG.error('Command not found: %s', cmd)
raise