Same comment: a ValueError will be better