I am getting a list index out of range error. I have tried looking at the code again and again but I am not getting anything as I do not know the syntax of python and lists very well.

This is the relevant code:

```
    while True:
          final = "Triangle_x128_y128.bmp"
          imageSizeToServe = re.findall(r'\d+', final)
          imageSize= imageSizeToServe[0]

```

and the error is: 

```
Traceback (most recent call last):
File "E:\Python27\MyServer.py", line 25, in <module>
imageSize= imageSizeToServe[0]
IndexError: list index out of range

```