Exception changed to ValueError