No, this is a ValueError because in this case the method gets an attribute which is the right type but with a wrong value. This is exactly the definition of a ValueError: http://docs.python.org/2/library/exceptions.html#exceptions.ValueError