| 38 | |
| 39 | |
| 40 | class CommandFailedError(Exception): |
| 41 | def __init__(self, called_process_error, auth_token): |
| 42 | msg = str(called_process_error).replace(auth_token, '******') |
| 43 | if called_process_error.stderr is not None: |
| 44 | msg += ( |
| 45 | f' Stderr from command:\n' |
| 46 | f'{called_process_error.stderr.decode(get_stderr_encoding())}' |
| 47 | ) |
| 48 | Exception.__init__(self, msg) |
| 49 | |
| 50 | |
| 51 | class BaseLogin: |
no outgoing calls
no test coverage detected