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:
parent
1368a89125
commit
77f8c8f593
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user