On 1/12/26 8:27 AM, jerry.barnabee--- via Mailman-Users wrote:
Any idea what is causing this error ?
root@server bin]# /usr/local/cpanel/3rdparty/mailman/bin/sync_members -f
/home/webapps/snippets/Backups/RefreshMailingListDaily.txt
executiveboard_xxxx.xxxx
Traceback (most recent call last):
File "/usr/local/cpanel/3rdparty/mailman/bin/sync_members", line 291, in
<module>
main()
File "/usr/local/cpanel/3rdparty/mailman/bin/sync_members", line 240, in main
elif not matches.has_key(laddr):
AttributeError: 'dict' object has no attribute 'has_key'
This is yet another bug in cPanel's fork of Mailman. It needs to be
reported to cPanel.
For more info, see the first paragraph (in red) at
https://wiki.list.org/DOC/Mailman%20and%20CPanel and the posts at
https://mail.python.org/archives/list/[email protected]/message/YZMAKPT436MDQA6EK4TK736TZRE2J2QJ/
and
https://mail.python.org/archives/list/[email protected]/message/3YIRO4T547Z65LWQYEEVWEMBQFJ544OF/
In the mean time this patch may fix it although it may just result in
triggering a different issue.
```
--- bin/sync_members 2018-06-17 23:47:34 +0000
+++ bin/sync_members 2026-01-12 20:39:31 +0000
@@ -237,7 +237,7 @@
if addrs.has_key(laddr):
del addrs[laddr]
matches[laddr] = 1
- elif not matches.has_key(laddr):
+ elif not matches.get(laddr):
needsadding[laddr] = (name, addr)
if not needsadding and not addrs:
```
--
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://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/[email protected]/
https://mail.python.org/archives/list/[email protected]/
Member address: [email protected]