As usual, the solution occurred to me right after I posted - this is from calling an index value with GetParameterAsText() beyond the length of the arguments. I have three tools calling the same script with different parameters.
Now on to other errors :-).
Cheers,
JP