def raise_protocol_error(server_handshake_bytes):
other_protocol = detect_other_protocol(server_handshake_bytes)<EOL>if other_protocol:<EOL><INDENT>raise TLSError('<STR_LIT>' % other_protocol)<EOL><DEDENT>raise TLSError('<STR_LIT>')<EOL>
Raises a TLSError due to a protocol error

:param server_handshake_bytes:
    A byte string of the handshake data received from the server

:raises:
    TLSError