def raise_protocol_error(server_handshake_bytes):

    other_protocol = detect_other_protocol(server_handshake_bytes)

    if other_protocol:
        raise TLSError('TLS protocol error - server responded using %s' % other_protocol)

    raise TLSError('TLS protocol error - server responded using a different protocol')
Raises a TLSError due to a protocol error
dataset/ETHPy150Open wbond/oscrypto/oscrypto/_tls.py/raise_protocol_error