This probly a really easy fix. I know this exception occurs when you try and access an index which does not exist, but
this code worked fine then just started giving this error and i cant figure out why...
cur.execute('select first, last from users where email = ?', [email]) userlist =  for user in cur.fetchall(): userlist.append( (user + " " + user) ) #dummy additions to the list... userlist.append( (user) ) userlist.append( (user) ) #print out the number of items in userlist - should be 3 use = len(userlist) print "Content-Type: text/html\n" print use rendered = tpl % (userlist) return rendered
<type 'exceptions.IndexError'>: list index out of range
args = ('list index out of range',)
message = 'list index out of range'