Skip to content

Commit

Permalink
cc3200/tools: Fix exception raised on process failure.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
projectgus authored and dpgeorge committed Aug 16, 2023
1 parent cec3ff5 commit ef864a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/cc3200/tools/uniflash.py
Expand Up @@ -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():
Expand Down

0 comments on commit ef864a4

Please sign in to comment.