TypeError reverted to ValueError