Don't crash on users who don't have a timezone
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
dd3ea36d47
commit
8f259d9236
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ class APIV1Page(Page):
|
|||
"email": user["mail"][0],
|
||||
"givenname": user["givenname"], # It's not a list? WTF?
|
||||
"surname": user["sn"][0],
|
||||
"zoneinfo": user["fastimezone"][0],
|
||||
"zoneinfo": user.get("fastimezone", [None])[0],
|
||||
}
|
||||
userdata["human_name"] = userdata["fullname"]
|
||||
userdata["name"] = userdata["fullname"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue