Skip to content

Commit

Permalink
Fix CodeQL warning
Browse files Browse the repository at this point in the history
  • Loading branch information
skottmckay committed Jan 14, 2024
1 parent 9d4d292 commit cec9d40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/python/run_CIs_for_branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ def _parse_args():
def _run_az_pipelines_command(command: typing.List[str]):
try:
az = "az.cmd" if is_windows() else "az"
return subprocess.run([az, "pipelines", *command], capture_output=True, text=True, check=True)
az_output = subprocess.run([az, "pipelines", *command], capture_output=True, text=True, check=True)
except subprocess.CalledProcessError as cpe:
print(cpe)
print(cpe.stderr)
sys.exit(-1)

return az_output


def main():
args = _parse_args()
Expand Down

0 comments on commit cec9d40

Please sign in to comment.