diff --git a/app/routes.py b/app/routes.py index 6d9a38a..42106d6 100644 --- a/app/routes.py +++ b/app/routes.py @@ -819,7 +819,10 @@ def getFeed(urls): if quote.find('div', attrs={'class':'unavailable-quote'}): newPost["replyingUser"]="Unavailable" else: - newPost["replyingUser"]=quote.find('a', attrs={'class':'username'}).text + try: + newPost["replyingUser"]=quote.find('a', attrs={'class':'username'}).text + except: + newPost["replyingUser"]="Unavailable" post.find('div', attrs={'class':'quote'}).decompose() if post.find('div', attrs={'class':'attachments'}): diff --git a/app/templates/_twitter_post.html b/app/templates/_twitter_post.html index 09cc99e..cba6368 100644 --- a/app/templates/_twitter_post.html +++ b/app/templates/_twitter_post.html @@ -29,7 +29,7 @@ {% if post.isReply %}
- +
{{post.replyingUser}}
{{post.replyingTweetContent | safe}}