mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
avoid printing the original exception bytes
Prevents the "while processing this exception, another exception occurred" message
This commit is contained in:
parent
015de0c51f
commit
3e156911e7
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue