diff --git a/src/long_tweets/twishort.py b/src/long_tweets/twishort.py index 8614d8b5..1b304f33 100644 --- a/src/long_tweets/twishort.py +++ b/src/long_tweets/twishort.py @@ -44,7 +44,7 @@ def is_long(tweet): if long == False and tweet.has_key("retweeted_status"): for url in range(0, len(tweet["retweeted_status"]["entities"]["urls"])): try: - if tweet["entities"]["urls"][url] != None and "twishort.com" in tweet["retweeted_status"]["entities"]["urls"][url]["expanded_url"]: + if tweet["retweeted_status"]["entities"]["urls"][url] != None and "twishort.com" in tweet["retweeted_status"]["entities"]["urls"][url]["expanded_url"]: long = get_twishort_uri(tweet["retweeted_status"]["entities"]["urls"][url]["expanded_url"]) except IndexError: pass