From 9784fb8eb52fc70b52bb646075babe52bd6955c3 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Tue, 27 Aug 2019 14:43:22 +0200 Subject: [PATCH] Don't crash if no url present --- toot/tui/timeline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toot/tui/timeline.py b/toot/tui/timeline.py index 4e820eb..a72192a 100644 --- a/toot/tui/timeline.py +++ b/toot/tui/timeline.py @@ -95,8 +95,8 @@ class Timeline(urwid.Columns): if key in ("v", "V"): status = self.get_focused_status() - webbrowser.open(status.data["url"]) - return + if status.data["url"]: + webbrowser.open(status.data["url"]) if key in ("u", "U"): status = self.get_focused_status()