exc_info can only be taken in catch