1
0
mirror of https://github.com/ihabunek/toot.git synced 2025-02-02 15:07:51 -05:00

Verify existence of field before checking it's not null

This commit is contained in:
m@rako.space 2024-12-09 22:17:49 +01:00
parent 1368a89125
commit 77f8c8f593

View File

@ -349,7 +349,7 @@ class Account(urwid.ListBox):
for line in widgetlist:
yield (line)
if field["verified_at"]:
if 'verified_at' in field and field["verified_at"]:
yield urwid.Text(("success", "✓ Verified"))
yield urwid.Divider()