Avoid displaying toot URL when it is None, in order to prevent crashing (Fix issue #33)
This commit is contained in:
parent
729498559d
commit
4b4b415986
1 changed files with 3 additions and 2 deletions
|
@ -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']
|
||||
|
|
Loading…
Reference in a new issue