Shreddit icon indicating copy to clipboard operation
Shreddit copied to clipboard

Error when trying to clear a vote that cannot be cleared.

Open crohana opened this issue 5 years ago • 1 comments

I am sorry I did not save the error message, but I got an error when trying to clear votes on posts that were older than 6 months. I think it only occurred on submissions and not comments.

I received and error 400 bad request then another error with exception handling. I looked through the code to try and see what the issue was.

I suspect the error is on line 138

self._logger.debug("Couldn't clear vote on {item}".format(item=item))

I think changing it to

self._logger.debug("Couldn't clear vote on {}".format(item=item))

would fix the issue.

I ran the program sorted by new and once I got to that issue I changed settings so it would not clear the vote any longer. Once I did that the program finished as expected.

Please let me know if I am off on this.

Edit: Wanted to add that I no longer have an account on reddit that is over 6 months, so I am unable to test.

crohana avatar May 19 '20 03:05 crohana

@floatingatoll, I just ran into this as well. Seeing as you don't have issues on your fork.

alper avatar Jun 26 '20 09:06 alper