diff options
| author | 2018-09-09 15:53:14 +0100 | |
|---|---|---|
| committer | 2018-09-09 15:53:14 +0100 | |
| commit | 0fcee46ebf510800dd3cbc8b011af028342671fb (patch) | |
| tree | 037797cc9d1871e75fa2920cd3b67d4008719ba9 | |
| parent | Fix up tweets.py (diff) | |
Should stop an error or two down the line.
| -rw-r--r-- | modules/tweets.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/tweets.py b/modules/tweets.py index 76f99d05..fc981c37 100644 --- a/modules/tweets.py +++ b/modules/tweets.py @@ -66,17 +66,17 @@ class Module(object): linked_id = tweet["id"] username = "@%s" % tweet["user"]["screen_name"] - url_shortener_link = False + url_shortener_link = None chopped_uname = username[1:] tweet_link = "https://twitter.com/%s/status/%s" % ( chopped_uname, linked_id) url_shortener_link = self.events.on("get").on( "shortlink").call( - url=tweet_link)[0] + url=tweet_link) - url_shortener_link = "" if url_shortener_link == False else \ - "-- " + url_shortener_link + url_shortener_link = "" if url_shortener_link == None else \ + "-- " + url_shortener_link[0] if "retweeted_status" in tweet: |
