897
897
# We do *not* set self.decoding_failed here. The message handler
898
898
# has raised an error, but the decoder is still able to parse bytes
899
899
# and determine when this message ends.
901
902
self.message_handler.protocol_error(exception.exc_value)
902
903
# The state machine is ready to continue decoding, but the
903
904
# exception has interrupted the loop that runs the state machine.