Skip to content

Commit f5bf00c

Browse files
committed
fixed displayname for NC26
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
1 parent f5b8b30 commit f5bf00c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nc_py_api/users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def additional_mail(self) -> list[str]:
7070
@property
7171
def display_name(self) -> str:
7272
"""The display name of the new user."""
73-
return self._raw_data["displayname"]
73+
return self._raw_data.get("displayname", "")
7474

7575
@property
7676
def phone(self) -> str:

0 commit comments

Comments
 (0)