From df06fd1a8906409c87e83bd069a1dde207580c50 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Martineau Date: Tue, 3 Nov 2026 03:06:56 -0500 Subject: [PATCH] The contacts command tolerates a context with no place service Co-Authored-By: Claude Haiku 5.5 --- meshterm/tools/contacts.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meshterm/tools/contacts.py b/meshterm/tools/contacts.py index 7771d94..f674c48 100644 --- a/meshterm/tools/contacts.py +++ b/meshterm/tools/contacts.py @@ -93,8 +93,12 @@ class ContactsTool(Tool): sort = ContactsSort.from_name(sort_name) # The CLI reads the stored places only. It never starts the job that finds them. + places = getattr(ctx, "places", None) listing = _listing( - ordered_contacts(contacts, counts, sort), counts, prefix_bytes, ctx.places.get + ordered_contacts(contacts, counts, sort), + counts, + prefix_bytes, + places.get if places is not None else None, ) return ToolResult( summary={"contacts": len(contacts)},