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

IndexOutOfBounds error in database fetch #65

Closed giulionf closed 5 years ago

giulionf commented 5 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 29, in is_submission_already_seen return len(result) > 0 and str(submission_id) in [x[0] for x in result] File "/app/src/realtweetornotbot/bot/database.py", line 29, in return len(result) > 0 and str(submission_id) in [x[0] for x in result] IndexError: tuple index out of range