whois stack trace KeyError: 'verified_at'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
toot (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
some users, when you use 'whois' result in their profile (this is expected) and then an error stack trace(this is something wrong)
example:
z@michelson:~$ toot whois @<email address hidden>
@<email address hidden> acile :archlinux:
Nur dabei statt mittendrin! #nieauftwitter
Ghost in the shell #zsh #tmux #vim
Works on desktop :archlinux: server :debian:
Works with #hpc #python #rust #foss
Loves #hardrock #classic
ID: AQI3jHT9wURADb3tMu
Since: 2022-12-05
Followers: 0
Following: 0
Statuses: 2
Web:
https:/
Traceback (most recent call last):
File "/usr/bin/toot", line 33, in <module>
sys.
File "/usr/lib/
run_
File "/usr/lib/
return fn(app, user, parsed_args)
File "/usr/lib/
print_
File "/usr/lib/
if field["
KeyError: 'verified_at'
ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: toot 0.34.1-1
Uname: Linux 6.0.7-gnulibre x86_64
ApportVersion: 2.26.0-0ubuntu2
Architecture: amd64
CasperMD5CheckR
Date: Tue Mar 7 22:57:37 2023
PackageArchitec
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: toot
UpgradeStatus: Upgraded to lunar on 2023-02-27 (8 days ago)
this should do :
in toot/output.py:
def print_account( account) : name"]. title()
print_ out(f'\ n<yellow> {name}< /yellow> :')
print_ html(field[ "value" ]) verified_ at"]:
print_ out("<green> ✓ Verified</green>")
print_ out("<red> not verified: verified_at missing</red>")
...
if account["fields"]:
for field in account["fields"]:
name = field["
try:
if field["
except KeyError as e:
print_out("") out(account[ "url"])
print_