vlinhart/python-mailsnake — comment on commit bf4ab65ac53171355c7fbe007280e8bb70c2a6db
File:  line 0
By vlinhart:

or we could do

```python
if isinstance(rsp, dict) and 'error' in rsp and 'code' in rsp:
```