On 12/24/24 08:13, Odhiambo Washington via Mailman-users wrote:
On Mon, Dec 23, 2024 at 8:58 PM Mark Sapiro <mark@msapiro.net> wrote:
I saw that too. Reported https://gitlab.com/mailman/mailman/-/issues/1187 and fixed https://gitlab.com/mailman/mailman/-/merge_requests/1297
It isn't clear to me what I should do to mitigate the error.
Apply this patch: ``` --- a/src/mailman/commands/cli_members.py +++ b/src/mailman/commands/cli_members.py @@ -103,7 +103,12 @@ def display_members(ctx, mlist, role, regular, digest, if nomail is not None: if member.delivery_status not in status_types: continue - dn = address.display_name or member.user.display_name + # Non-members may have empty address.display_name and member.user can + # be None resulting in AttributeError on member.user.display_name. + try: + dn = address.display_name or member.user.display_name + except AttributeError: + dn = '' if email_only or not dn: print(address.original_email, file=outfp) else: ``` -- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan