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>
pull/12197/head
Angus Gratton 2023-08-09 18:17:06 +10:00 zatwierdzone przez Damien George
rodzic cec3ff5526
commit ef864a4aa4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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():