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,
|
pipe=pipe,
|
||||||
shell=shell,
|
shell=shell,
|
||||||
**kwargs)
|
**kwargs)
|
||||||
|
check = cmd_kwargs.pop('check', True) # Avoids linting warning
|
||||||
try:
|
try:
|
||||||
proc = subprocess.run(**cmd_kwargs)
|
proc = subprocess.run(check=check, **cmd_kwargs)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
LOG.error('Command not found: %s', cmd)
|
LOG.error('Command not found: %s', cmd)
|
||||||
raise
|
raise
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue