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

RedditCommentExtractor003.py doesn't run #2

Open
ghost opened this issue Nov 11, 2019 · 2 comments
Open

RedditCommentExtractor003.py doesn't run #2

ghost opened this issue Nov 11, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 11, 2019

Hello,

I run your script on Ubuntu and already initiate the main SQLite database.
But when I ran "RedditCommentExtractor003.py" script, the cmd said the following:

python3 RedditCommentExtractor003.py
Traceback (most recent call last):
File "RedditCommentExtractor003.py", line 77, in
runNumber = cursor.fetchone()[0]
TypeError: 'NoneType' object is not subscriptable

So, how can I fix it?

Greetings,

MeaWest

@logistic-bot

This comment has been minimized.

@logistic-bot
Copy link

I managed to fix it: replace line 77 with runNumber = cursor.fetchone() or 0, let it run for a few seconds, and change it back.

It seems to work now.

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

No branches or pull requests

1 participant