Ipn fix

This wasn't the goal of this pull request. I just came accross this while testing. I added the raise there, so we would notice in the future.