From 4b4b415986e093097706951b1273e3276d746b9f Mon Sep 17 00:00:00 2001 From: Vee Satayamas Date: Sun, 10 Dec 2017 21:59:25 +0700 Subject: [PATCH] Avoid displaying toot URL when it is None, in order to prevent crashing (Fix issue #33) --- toot/app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/toot/app.py b/toot/app.py index 7e86513..74fa6b0 100644 --- a/toot/app.py +++ b/toot/app.py @@ -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']