we should log the real exception:
```python
except Exception as e:
    app.logger.exception(e)
```