def validate_settings(event):
    """Validate minerva specific settings."""
    key = event.info['key']
    val = event.info['value']

    if key == 'minerva.geonames_folder':
        ModelImporter.model('folder').load(val, exc=True, force=True)
        event.preventDefault().stopPropagation()
dataset/ETHPy150Open Kitware/minerva/server/loader.py/validate_settings/original