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
parent
872feef24b
commit
8477919fc9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue