Skip to content

Commit

Permalink
Fix stdlib.run() documentation
Browse files Browse the repository at this point in the history
CalledProcessError() is raised on non-zero exit when checked==True, not when checked==False.
  • Loading branch information
abadger authored and pirat89 committed Jan 11, 2024
1 parent 034aee0 commit 1cdd189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leapp/libraries/stdlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def run(args, split=False, callback_raw=_console_logging_handler, callback_lineb
:return: {'stdout' : stdout, 'stderr': stderr, 'signal': signal, 'exit_code': exit_code, 'pid': pid}
:rtype: dict
:raises: OSError if an executable is missing or has wrong permissions
:raises: CalledProcessError if the cmd has non-zero exit code and `checked` is False
:raises: CalledProcessError if the cmd has non-zero exit code and `checked` is True
:raises: TypeError if any input parameters have an invalid type
:raises: valueError if any of input parameters have an invalid value
"""
Expand Down

0 comments on commit 1cdd189

Please sign in to comment.