Fixed an incorrect exception raise

Assume this is the intended exception - needed to fix so I could see what was going wrong :)