From 3d6c478f8a35e85d73f67909a56578a3f89fc9da Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 25 May 2020 14:28:37 +1000 Subject: [PATCH] avoid printing the original exception bytes Prevents the "while processing this exception, another exception occurred" message --- pylib/anki/rsbackend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylib/anki/rsbackend.py b/pylib/anki/rsbackend.py index 0d75b401d..23b7fa9bd 100644 --- a/pylib/anki/rsbackend.py +++ b/pylib/anki/rsbackend.py @@ -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(