CraigLister icon indicating copy to clipboard operation
CraigLister copied to clipboard

Most Recent Call Last

Open ColbyC opened this issue 9 years ago • 2 comments


root@debian:/home/python/Desktop# python craiglister.py
Traceback (most recent call last):
  File "craiglister.py", line 219, in <module>
    if (hasItBeenXDaysSinceFolderListed(dayListedFolder,3) == False):
  File "craiglister.py", line 188, in hasItBeenXDaysSinceFolderListed
    folderDate = datetime.date(int(dateSplit[2]) + 2000, int(dateSplit[0]), int(dateSplit[1]))
IndexError: list index out of range

ColbyC avatar Nov 19 '16 01:11 ColbyC

I have received this error while testing code?

ColbyC avatar Nov 19 '16 01:11 ColbyC

Looks like an 'off-by-one' error' that resulted from trying to access an element in an array that doesn't exist(the element doesn't exist). The script mostly worked for me last time I used it a couple of months ago. I DID have to modify my Gmail settings a bit though.

derek-baker avatar Nov 21 '16 13:11 derek-baker