def pnt_version(ws, logger):
    """
    Function to check if PNT has the expected version
    PNT version is located at cell E2 on the excel input file
    """
    version = str(ws['E2'].value)
    if 'R-PNT-TEC-016-1/rev.3' not in version:
        logger.error(
            'La celda E2 del PNT no contiene la version R-PNT-TEC-016-1/rev.3')
        logger.error('La version del documento excel introducido es: ')
        logger.error(version)
        logger.error('Saliendo del programa...')
        exit(1)
    else:
        logger.info('Success reading version of registry')
