mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-25 16:38:21 -04:00
Python: document which exception is thrown on process failure
This commit is contained in:
parent
5f7b221e11
commit
d5bef9efb5
1 changed files with 3 additions and 1 deletions
|
@ -398,7 +398,9 @@ target_env_process_output(["ls"])
|
|||
```
|
||||
|
||||
The functions return 0. If the exit code of *command* is not 0, an exception
|
||||
is raised instead of returning 0.
|
||||
is raised instead of returning 0. The exception is `subprocess.CalledProcessError`
|
||||
(as if the *subprocess* module had been used), and the `returncode` member
|
||||
of the exception object can be used to determine the exit code.
|
||||
|
||||
Parameter *stdin* may be a string which is fed to the command as standard input.
|
||||
The *timeout* is in seconds, with 0 (or a negative number) treated as no-timeout.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue