Should this not be a ValueError?