I'd raise [ValueError](http://docs.python.org/2/library/exceptions.html#exceptions.ValueError) here.