Fix attr name error, use public `MsgDec.dec`

runtime_to_msgspec
Tyler Goodlet 2024-04-30 12:55:46 -04:00
parent 88a0e90f82
commit 30c5896d26
1 changed files with 2 additions and 2 deletions

View File

@ -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(