From 30c5896d26cc4567f9176b586538bded8be67e74 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 30 Apr 2024 12:55:46 -0400 Subject: [PATCH] Fix attr name error, use public `MsgDec.dec` --- tractor/msg/_ops.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tractor/msg/_ops.py b/tractor/msg/_ops.py index 5a9ab46..4cf2049 100644 --- a/tractor/msg/_ops.py +++ b/tractor/msg/_ops.py @@ -229,7 +229,7 @@ class PldRx(Struct): log.runtime( 'Decoded msg payload\n\n' f'{msg}\n' - f'|_pld={pld!r}' + f'|_pld={pld!r}\n' ) return pld @@ -237,7 +237,7 @@ class PldRx(Struct): except ValidationError as src_err: msgterr: MsgTypeError = _mk_msg_type_err( msg=msg, - codec=self._dec, + codec=self.dec, src_validation_error=src_err, ) msg: Error = pack_from_raise(