kopia lustrzana https://github.com/ihabunek/toot
Verify existence of field before checking it's not null
rodzic
e8a16ca2d2
commit
6e6931bfd3
|
@ -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()
|
||||
|
|
Ładowanie…
Reference in New Issue