On 12/24/24 08:13, Odhiambo Washington via Mailman-users wrote:
On Mon, Dec 23, 2024 at 8:58 PM Mark Sapiro <[email protected]> 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 <[email protected]>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

_______________________________________________
Mailman-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/[email protected]/message/MX4NBUH75RPSICN7NWL2EQOTT7237G3H/

This message sent to [email protected]

Reply via email to