summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2023-08-09 18:17:06 +1000
committerDamien George <damien@micropython.org>2023-08-16 16:13:11 +1000
commitef864a4aa4370ea1b659496e4d0f145bbc28bec3 (patch)
tree81861c7721ffc8c24e2659ea62d6031d9593b891
parentcec3ff5526d1aa09b0eb86a371d7312ddb8a33b4 (diff)
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>
-rw-r--r--ports/cc3200/tools/uniflash.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/cc3200/tools/uniflash.py b/ports/cc3200/tools/uniflash.py
index 83445a12d..2fa2c02f4 100644
--- a/ports/cc3200/tools/uniflash.py
+++ b/ports/cc3200/tools/uniflash.py
@@ -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():