Should be `except Exception` so `BaseException` isn't caught (this applies to all naked `except:`s which don't contain a re-raise, but I'll only comment on this one).