def getObjectType(
    configId,
    objectTypeRetriever=[
        _post7objectTypeRetriever, _pre7objectTypeRetriever
    ]
):
    try:
        typeName = objectTypeRetriever[0](str(configId))
    except __HOLE__, ae:
        if 'getObjectType' not in ae.args:
            raise
        logger.warning(
            'default method of retrieving object types has failed, '
            'falling back to reflection-based mechanism'
        )
        # from now on, the default type retriever will be the one using
        # reflection
        objectTypeRetriever[0] = objectTypeRetriever[1]
        typeName = getObjectType(configId)
    getTypeInfo(typeName)
    return typeName
dataset/ETHPy150Open WDR/WDR/lib/common/wdr/config.py/getObjectType