cc3200/tools: Fix exception raised on process failure.

subprocess.CalledProcessError() constructor arguments aren't documented,
but these are them.  Even if they change, it's an improvement over a
non-existent exception name!

Found by Ruff checking F821.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
This commit is contained in:
Angus Gratton 2023-08-09 18:17:06 +10:00 committed by Damien George
parent cec3ff5526
commit ef864a4aa4
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ def execute(command):
if exitCode == 0:
return cmd_log
else:
raise ProcessException(command, exitCode, output)
raise subprocess.CalledProcessError(exitCode, command, output)
def main():