Avoid displaying toot URL when it is None, in order to prevent crashing (Fix issue #33)

This commit is contained in:
Vee Satayamas 2017-12-10 21:59:25 +07:00
parent 729498559d
commit 4b4b415986

View file

@ -216,8 +216,9 @@ class TimelineApp:
window.addstr(y, 1, '-' * (text_width + 2))
y += 1
window.addstr(y, 2, status['url'])
y += 1
if status['url'] is not None:
window.addstr(y, 2, status['url'])
y += 1
if status['boosted_by']:
acct = status['boosted_by']['acct']