mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Fix yet another error due to reduced tweets
This commit is contained in:
parent
7eb2d8930f
commit
84cbf5c497
@ -39,8 +39,8 @@ def get_twishort_uri(url):
|
|||||||
def is_long(tweet):
|
def is_long(tweet):
|
||||||
""" Check if the passed tweet is made with Twishort.
|
""" Check if the passed tweet is made with Twishort.
|
||||||
returns True if is a long tweet, False otherwise."""
|
returns True if is a long tweet, False otherwise."""
|
||||||
if hasattr(tweet, "entities") and tweet.entities.get("urls"):
|
|
||||||
long = False
|
long = False
|
||||||
|
if hasattr(tweet, "entities") and tweet.entities.get("urls"):
|
||||||
for url in range(0, len(tweet.entities["urls"])):
|
for url in range(0, len(tweet.entities["urls"])):
|
||||||
try:
|
try:
|
||||||
if tweet.entities["urls"][url] != None and "twishort.com" in tweet.entities["urls"][url]["expanded_url"]:
|
if tweet.entities["urls"][url] != None and "twishort.com" in tweet.entities["urls"][url]["expanded_url"]:
|
||||||
|
Loading…
Reference in New Issue
Block a user