On Tue, Dec 24, 2024 at 8:39 PM Mark Sapiro <m...@msapiro.net> wrote:

> On 12/24/24 08:13, Odhiambo Washington via Mailman-users wrote:
> > On Mon, Dec 23, 2024 at 8:58 PM Mark Sapiro <m...@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:
> ```
>

Thank you.

Now only if you can help me reconcile the fact that Postorius tells me that
I have
```
List Nonmembers (872)

```

..while the CLI command gives me only 13 addresses.

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
 In an Internet failure case, the #1 suspect is a constant: DNS.
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
[How to ask smart questions:
http://www.catb.org/~esr/faqs/smart-questions.html]
_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/2JFH2OFLYXKM3QHJFFFPRMACB2DABI7C/

This message sent to arch...@mail-archive.com

Reply via email to