Linting
This commit is contained in:
parent
e1639974e3
commit
a4cdf051ff
1 changed files with 2 additions and 3 deletions
|
@ -110,20 +110,19 @@ class ExecutionApi:
|
||||||
print(line.decode("utf-8"), end="")
|
print(line.decode("utf-8"), end="")
|
||||||
process.stdout.close()
|
process.stdout.close()
|
||||||
process.wait()
|
process.wait()
|
||||||
|
|
||||||
def run_handled(self, command: str, shell=True, check=True):
|
def run_handled(self, command: str, shell=True, check=True):
|
||||||
try:
|
try:
|
||||||
run(
|
run(
|
||||||
command,
|
command,
|
||||||
shell=shell,
|
shell=shell,
|
||||||
check=check,
|
check=check,
|
||||||
capture_output=True,
|
capture_output=True,
|
||||||
text=True)
|
text=True)
|
||||||
except CalledProcessError as exc:
|
except CalledProcessError as exc:
|
||||||
print("Command failed with code: ", exc.returncode, " and message:", exc.stderr)
|
print("Command failed with code: ", exc.returncode, " and message:", exc.stderr)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class EnvironmentApi:
|
class EnvironmentApi:
|
||||||
def get(self, key):
|
def get(self, key):
|
||||||
return environ.get(key)
|
return environ.get(key)
|
||||||
|
|
Loading…
Reference in a new issue