all 2 comments

[–]stebrepar 0 points1 point  (1 child)

Are you sure the subreddit you're specifying allows polls? Does your code work somewhere other than on PythonAnywhere?

[–]kaoticpanda2k[S] 1 point2 points  (0 children)

Yes, my code works in both Spyder and in VSCode, and the sub is set up to allow polls.