Not sure if this helps but you could do:
```python
except (ValueError, TypeError) as err:
    ...
    'reason': str(err)
```