mirror of
https://github.com/ihabunek/toot
synced 2024-12-25 00:20:55 +01:00
Don't crash if no url present
This commit is contained in:
parent
871e2bc960
commit
9784fb8eb5
@ -95,8 +95,8 @@ class Timeline(urwid.Columns):
|
|||||||
|
|
||||||
if key in ("v", "V"):
|
if key in ("v", "V"):
|
||||||
status = self.get_focused_status()
|
status = self.get_focused_status()
|
||||||
|
if status.data["url"]:
|
||||||
webbrowser.open(status.data["url"])
|
webbrowser.open(status.data["url"])
|
||||||
return
|
|
||||||
|
|
||||||
if key in ("u", "U"):
|
if key in ("u", "U"):
|
||||||
status = self.get_focused_status()
|
status = self.get_focused_status()
|
||||||
|
Loading…
Reference in New Issue
Block a user