mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-01-18 16:40:41 -06:00
Fixed a bug with twishort in the longtweets handler
This commit is contained in:
parent
21aacfc2af
commit
6d578d5203
@ -21,7 +21,10 @@ import keys
|
||||
from twitter import utils
|
||||
|
||||
def get_twishort_uri(url):
|
||||
return url.split("twishort.com/")[1]
|
||||
try:
|
||||
return url.split("twishort.com/")[1]
|
||||
except IndexError:
|
||||
return False
|
||||
|
||||
def is_long(tweet):
|
||||
long = False
|
||||
|
Loading…
x
Reference in New Issue
Block a user