Index list out of range?

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

I’ve just received an error with this code:

<In what way does your code behave incorrectly? Include ALL error messages.>

<What do you expect to happen instead?>

```python

ListOfRawSizes = Page.select(’.size-dropdown-block’)
Sizes = str(ListOfRawSizes[0].getText()).replace(’\t’, ‘’)

  File "<pyshell#2>", line 1, in <module>
    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.
<do not remove the three backticks above>

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