Same here, explicit ValueError would probably be nicer.