Index list out of range?


#1


I've just received an error with this code:


python
ListOfRawSizes = Page.select('.size-dropdown-block') Sizes = str(ListOfRawSizes[0].getText()).replace('\t', '')
Traceback (most recent call last):
File "", line 1, in
shoebot.Main('BB4486', 10)
File "/Users/joshrajendran/Documents/shoebot.py", line 33, in Main
CheckStock(url)
File "/Users/joshrajendran/Documents/shoebot.py", line 23, in CheckStock
Sizes = str(ListOfRawSizes[0].getText()).replace('\t', '')
IndexError: list index out of range

I don't understand why it is out of range.


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.