avoid printing the original exception bytes

Prevents the "while processing this exception, another exception
occurred" message
This commit is contained in:
Damien Elmes 2020-05-25 14:28:37 +10:00
parent 015de0c51f
commit 3e156911e7

View file

@ -233,8 +233,8 @@ class RustBackend(RustBackendGenerated):
except Exception as e:
err_bytes = bytes(e.args[0])
err = pb.BackendError()
err.ParseFromString(err_bytes)
raise proto_exception_to_native(err)
err.ParseFromString(err_bytes)
raise proto_exception_to_native(err)
def translate_string_in(