```
try:
    label_full.append(obj[id_set][column_name])
except ValueError:
    raise ValueError("Unknown column name in map file.")
```

Note that with this error message, you should also output the name that can't be found in the mapping file.