Like this?

```python
        if resp.status_code != 200:
            raise Exception("Could not send email, got a %s response, data: %s" % (resp.status_code, resp.json))
```