diff options
author | somov <somov@yandex-team.com> | 2024-09-03 09:06:30 +0300 |
---|---|---|
committer | somov <somov@yandex-team.com> | 2024-09-03 09:26:06 +0300 |
commit | 901ec90025bf990a52f0e482d013b0d20a6002ac (patch) | |
tree | 9dbcabd83bdc828fccbad967d3a6585e6fc6ff73 /build/scripts/go_proto_wrapper.py | |
parent | d0a08cdc9c4c0b197b2c2cceac2a18a95a535124 (diff) | |
download | ydb-901ec90025bf990a52f0e482d013b0d20a6002ac.tar.gz |
Do not raise additional exception when failed to decode protoc output
ba7df0e549915def70c0b6d303aa625ddc636db9
Diffstat (limited to 'build/scripts/go_proto_wrapper.py')
-rw-r--r-- | build/scripts/go_proto_wrapper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/scripts/go_proto_wrapper.py b/build/scripts/go_proto_wrapper.py index 1973d6e381..8f2a6130e0 100644 --- a/build/scripts/go_proto_wrapper.py +++ b/build/scripts/go_proto_wrapper.py @@ -67,7 +67,7 @@ def main(args): subprocess.check_output(args, 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 |