Update run_program to avoid linting warnings
This commit is contained in:
parent
6a1cf98d0b
commit
0ace951380
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue