> LGTM. Curiosity:
>
> 7 except (TypeError, KeyError) as exc:
> 8 - LOG.exception(exc)
> 9 raise TypeError
>
> Why are we catching and reraising a different exception?
Since I wrote it, I'll answer: I didn't want to create a new exception, and it didn't matter if it was a KeyError or a TypeError in the calling code. I will admit it's kind of fragile.
> LGTM. Curiosity:
>
> 7 except (TypeError, KeyError) as exc:
> 8 - LOG.exception(exc)
> 9 raise TypeError
>
> Why are we catching and reraising a different exception?
Since I wrote it, I'll answer: I didn't want to create a new exception, and it didn't matter if it was a KeyError or a TypeError in the calling code. I will admit it's kind of fragile.