New submission from Jennie email@example.com:
The documentation for subprocess says that run() can return CalledProcessError...
...but when you click on the link (5th paragraph down) for CalledProcessError, it only lists check_call() and check_output() as methods that can return it.
My understanding is that check_call(), at least, is (becoming?) deprecated. So this section should definitely mention run():
---------- assignee: docs@python components: Documentation messages: 389564 nosy: docs@python, jennievh priority: normal severity: normal status: open title: Documentation needs to declare CalledProcessError as potentially resulting from subprocess.run() type: enhancement versions: Python 3.9