Lets wait until python 3 which always also gives the original message.

In this case the original message has no meaning. This is only one way to test if the value has an attribute .person_id. It a synonym for
```python
if hasattr(value, 'person_id'):
  return ...
else:
  raise ...
```