Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems processing low-activity accounts #1

Open
bontchev opened this issue Dec 18, 2019 · 0 comments · May be fixed by #3
Open

Problems processing low-activity accounts #1

bontchev opened this issue Dec 18, 2019 · 0 comments · May be fixed by #3

Comments

@bontchev
Copy link

There is some kind of bug when processing accounts that haven't posted much. The script crashes with the following error:

Traceback (most recent call last):
  File "reddit-analyzer.py", line 192, in <module>
    timeGraph(timelist)
  File "reddit-analyzer.py", line 144, in timeGraph
    d.append(tuple([g, tgdata[e][1]]))
IndexError: list index out of range

I've printed the contents of tgdata before the loop starts and the values of e as the loop is looping and I got this:

[(2, 1), (3, 1), (4, 5), (6, 1), (7, 2), (9, 1), (10, 1), (18, 2)]
0
1
2
3
4
5
6
7
8

Clearly, the error occurs because the script is trying to get the 9th element of an 8-element array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant