mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
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:
committed by
Damien George
parent
cec3ff5526
commit
ef864a4aa4
@@ -41,7 +41,7 @@ def execute(command):
|
|||||||
if exitCode == 0:
|
if exitCode == 0:
|
||||||
return cmd_log
|
return cmd_log
|
||||||
else:
|
else:
|
||||||
raise ProcessException(command, exitCode, output)
|
raise subprocess.CalledProcessError(exitCode, command, output)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|||||||
Reference in New Issue
Block a user