I don't know what this error means

image

You tried to select item 1 from an empty piece of text, which would not be a list, and even if it was regarded as a list, you blithely assumed there was an item 1 there without bothering to look to see if the length of that list exceeded 1.