提交 ef864a4a 编写于 作者: A Angus Gratton 提交者: Damien George

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: NAngus Gratton <angus@redyak.com.au>
上级 cec3ff55
......@@ -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():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册