Any exception message should be nice...also unless its important for this to be ValueError you can do:
assert value is not None

instead of declaring new function