diff --git a/twython/api.py b/twython/api.py index 2ed50bc..1d514eb 100644 --- a/twython/api.py +++ b/twython/api.py @@ -597,7 +597,7 @@ class Twython(EndpointsMixin, object): text = text.replace(tweet['text'][start:end], url_html % (entity['url'], shown_url)) - if expand_quoted_status and tweet.get('is_quote_status'): + if expand_quoted_status and tweet.get('is_quote_status') and tweet.get('quoted_status'): quoted_status = tweet['quoted_status'] text += '
%(quote)s' \ '%(quote_user_name)s' \