Fixed a few issues with long tweets

This commit is contained in:
2016-07-18 09:56:22 -05:00
parent c1c001ad96
commit f9d869e824
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@
from twitter import utils
def is_long(tweet):
if tweet.has_key("is_quote_status") and tweet["is_quote_status"] == True:
if tweet.has_key("is_quote_status") and tweet["is_quote_status"] == True and tweet.has_key("quoted_status"):
return tweet["quoted_status_id"]
return False