Conversations: Ignores deleted tweets and 404 errors

This commit is contained in:
Manuel Cortez 2016-04-01 08:55:30 -06:00
parent c4e2c3b57a
commit 7139a2bcb3

View File

@ -1071,7 +1071,10 @@ class conversationBufferController(searchBufferController):
self.ids.append(self.tweet["id"])
tweet = self.tweet
while tweet["in_reply_to_status_id"] != None:
tweet = self.session.twitter.twitter.show_status(id=tweet["in_reply_to_status_id"])
try:
tweet = self.session.twitter.twitter.show_status(id=tweet["in_reply_to_status_id"])
except TwythonError as err:
break
self.statuses.insert(0, tweet)
self.ids.append(tweet["id"])
if tweet["in_reply_to_status_id"] == None: