From f9b549029a2c9c191f6a9878b1c81c63c71f18c8 Mon Sep 17 00:00:00 2001 From: Tim Berners-Lee Date: Tue, 27 Aug 2024 17:56:39 -0400 Subject: [PATCH] make the lack of address book non-fatal when listing groups --- groupMembershipControl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/groupMembershipControl.js b/groupMembershipControl.js index 6e19941..6489601 100644 --- a/groupMembershipControl.js +++ b/groupMembershipControl.js @@ -87,7 +87,8 @@ export async function renderGroupMemberships (person, context) { if (!book) { book = kb.any(undefined, ns.vcard('includesGroup')) if (!book) { - throw new Error('findBookFromGroups: Cant find address book which this group is part of') + // throw new Error('findBookFromGroups: Cant find address book which this group is part of') + return // no book => no groups } } const groupIndex = kb.any(book, ns.vcard('groupIndex'))