mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-07-18 06:06:06 -04:00
A fw bugfixes
This commit is contained in:
@@ -30,5 +30,6 @@ def is_long(tweet):
|
||||
|
||||
def clear_url(tweet):
|
||||
urls = utils.find_urls_in_text(tweet["text"])
|
||||
tweet["message"] = tweet["message"].replace(urls[-1]+".", "")
|
||||
try: tweet["message"] = tweet["message"].replace(urls[-1]+".", "")
|
||||
except IndexError: pass
|
||||
return tweet
|
Reference in New Issue
Block a user