Fixed a bug with twishort in the longtweets handler

This commit is contained in:
Manuel Cortez 2015-11-18 09:26:07 -06:00
parent 21aacfc2af
commit 6d578d5203

View File

@ -21,7 +21,10 @@ import keys
from twitter import utils from twitter import utils
def get_twishort_uri(url): def get_twishort_uri(url):
try:
return url.split("twishort.com/")[1] return url.split("twishort.com/")[1]
except IndexError:
return False
def is_long(tweet): def is_long(tweet):
long = False long = False