giulionf / realtweetornotbot

Scans screenshots of tweets on reddit and links the corresponding tweet
https://www.reddit.com/u/realtweetornotbot
MIT License
76 stars 5 forks source link

Error when Fetching empty results #75

Closed giulionf closed 3 years ago

giulionf commented 3 years ago

Traceback (most recent call last): File "/app/src/realtweetornotbot/bot/bot.py", line 45, in try_repeatedly_with_timeout func() File "/app/src/realtweetornotbot/bot/bot.py", line 34, in self.tryrepeatedly_with_timeout(lambda: self.reply_to_post(post, response)) File "/app/src/realtweetornotbot/bot/bot.py", line 87, in __reply_to_post if self._is_valid_post(post): File "/app/src/realtweetornotbot/bot/bot.py", line 84, in _is_valid_post return super()._is_valid_post(post) and not db.is_submission_already_seen(post.id) File "/app/src/realtweetornotbot/bot/database.py", line 28, in is_submission_already_seen result = self._cursor.fetchall() psycopg2.ProgrammingError: no results to fetch