Don't pass `ipc_msg` for send side MTEs

Just pass `_bad_msg` such that it get's injected to `.msgdata` since
with a send-side `MsgTypeError` we don't have a remote `._ipc_msg:
Error` per say to include.
runtime_to_msgspec
Tyler Goodlet 2024-06-17 10:32:50 -04:00
parent 872feef24b
commit 8477919fc9
1 changed files with 3 additions and 3 deletions

View File

@ -441,7 +441,8 @@ class RemoteActorError(Exception):
for key in fields:
if (
key == 'relay_uid' and not self.is_inception()
key == 'relay_uid'
and not self.is_inception()
):
continue
@ -1291,8 +1292,7 @@ def _mk_msg_type_err(
msgtyperr = MsgTypeError(
message=message,
ipc_msg=msg,
bad_msg=msg,
_bad_msg=msg,
)
# ya, might be `None`
msgtyperr.__cause__ = src_type_error