From ef864a4aa4370ea1b659496e4d0f145bbc28bec3 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 9 Aug 2023 18:17:06 +1000 Subject: [PATCH] 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 --- ports/cc3200/tools/uniflash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/cc3200/tools/uniflash.py b/ports/cc3200/tools/uniflash.py index 83445a12d3..2fa2c02f45 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():