From 8477919fc92b9811ec10bb9931da184319fa4d4c Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 17 Jun 2024 10:32:50 -0400 Subject: [PATCH] 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. --- tractor/_exceptions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tractor/_exceptions.py b/tractor/_exceptions.py index 92c3faf..8ed46eb 100644 --- a/tractor/_exceptions.py +++ b/tractor/_exceptions.py @@ -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