I'm thinking ValueError might be more appropiate.