mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-01-19 00:40:42 -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
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user