1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-06-23 06:25:26 +00:00

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']