Raise a ValueError

Strings are no longer supported as a arguments to raise in Python >=2.6.