Port to new `msgspec` error type

fence_mp
Tyler Goodlet 2022-02-16 13:06:24 -05:00
parent 75bb1added
commit 509082c935
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ class MsgspecTCPStream(MsgpackTCPStream):
try: try:
yield self.decode(msg_bytes) yield self.decode(msg_bytes)
except ( except (
msgspec.DecodingError, msgspec.DecodeError,
UnicodeDecodeError, UnicodeDecodeError,
): ):
if not last_decode_failed: if not last_decode_failed: