1) Please add a test case that covers these lines.  As written, this would throw a run-time exception with the `logger` call (`logger` isn't a function).

2) In Python, `raise` with no arguments will re-raise the current exception.
3) Use `logger.exception(msg)` so we get the stack trace.