ValueError -> TypeError.  Seems a more appropriate exception to raise.