diff options
| author | somov <[email protected]> | 2024-09-03 09:06:30 +0300 |
|---|---|---|
| committer | somov <[email protected]> | 2024-09-03 09:26:06 +0300 |
| commit | 901ec90025bf990a52f0e482d013b0d20a6002ac (patch) | |
| tree | 9dbcabd83bdc828fccbad967d3a6585e6fc6ff73 /build/scripts/cpp_proto_wrapper.py | |
| parent | d0a08cdc9c4c0b197b2c2cceac2a18a95a535124 (diff) | |
Do not raise additional exception when failed to decode protoc output
ba7df0e549915def70c0b6d303aa625ddc636db9
Diffstat (limited to 'build/scripts/cpp_proto_wrapper.py')
| -rw-r--r-- | build/scripts/cpp_proto_wrapper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/scripts/cpp_proto_wrapper.py b/build/scripts/cpp_proto_wrapper.py index a70ba21e574..c29ca53a1de 100644 --- a/build/scripts/cpp_proto_wrapper.py +++ b/build/scripts/cpp_proto_wrapper.py @@ -25,7 +25,7 @@ def main(namespace: argparse.Namespace) -> int: subprocess.check_output(namespace.subcommand, stdin=None, stderr=subprocess.STDOUT) except subprocess.CalledProcessError as e: sys.stderr.write( - '{} returned non-zero exit code {}.\n{}\n'.format(' '.join(e.cmd), e.returncode, e.output.decode('utf-8')) + '{} returned non-zero exit code {}.\n{}\n'.format(' '.join(e.cmd), e.returncode, e.output.decode('utf-8', errors='ignore')) ) return e.returncode |
