typo

Typo which causes an AttributeError instead of a ValueError.