Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion gallery/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ def convert_uuid_to_displayname(self, uuid: str) -> str:
return uuid
if self._ldap is None:
return "unknown"
return self._ldap.get_member(uuid).displayName

try:
return self._ldap.get_member(uuid).displayName
except KeyError:
return "Unknown"


def is_eboard(self, uid: str) -> bool:
if self._ldap is None:
Expand Down