carputils.divertoutput.subprocess_exceptions

orphan:

carputils.divertoutput.subprocess_exceptions()

Make call() raise an exception on process non-zero exit status.

Example usage:

>>> from carputils import divertoutput
>>> with divertoutput.subprocess_exceptions():
>>>     diveroutput.call(['ls', '-e'])
Traceback (most recent call last):
    ...
CalledProcessError: Command '['ls', '-e']' returned non-zero exit status 2