not a big fan of 'empty' `except`s... What errors can be expected to occur here? This should do it:

```python
except (KeyError, TypeError), err:
```