Python crash
Derek Broughton
news at pointerstop.ca
Fri Dec 14 14:43:27 UTC 2007
Frank McCormick wrote:
>
> Processor: Intel(R) Pentium(R) 4 CPU 2.60GHz
> Processor: Intel(R) Pentium(R) 4 CPU 2.60GHz
> HD size: 30003240960 bytes
> Network: Intel Corporation : 82562EZ 10/100 Ethernet Controller
> Traceback (most recent call last):
> File "about.py", line 115, in ?
> main()
> File "about.py", line 56, in main
> finalnode = xorgline.split('"')[1]
> IndexError: list index out of range
Yes? That seems normal. Anytime you do a "split()" on a string not
containing the character, [1] is going to be out of range.
--
derek
More information about the ubuntu-users
mailing list