Please don't raise the top level Exception. Use a derived class such as ValueError so that excepts can be more specific.