From a purely stylistic perspective I'd rather this be

```python
try:
    cookiejar.update(cookies)
except AttributeError:
    raise CookieJarError
```