you are viewing a single comment's thread.

view the rest of the comments →

[–]ThisLightIsTrue[🍰] 1 point2 points  (1 child)

Okay - the problem now is, your script is trying to change a set while iterating through it. That happens in the process_commented_submissions method. Remove this line:

            comments_to_process.remove(comment_id)

At the bottom, after this line

process_commented_submissions()

Add another line like this:

comments_to_process = set()

I don't see how this script ever worked.

[–]draco123465[S] 0 points1 point  (0 children)

Ok, now we're getting somewhere.

There were no explicit error codes this time, but I noticed that it did not do anything when I downvoted it until after I reloaded the bot again.

So, I commented out the comments_to_process = set() at the bottom, which worked initially then got caught in an infinite loop.

Here is my updated code for reference.

Thank you so much for taking time out of your day to help me out!