sync_members bugs (possible fixes included)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
New
|
High
|
Unassigned |
Bug Description
While trying to run sync_members in MM 2.1, I get the
following errors:
Traceback (most recent call last):
File "/home/
main()
File "/home/
s = email.Utils.
addr)).encode(enc, replace')
UnboundLocalError: local variable 'enc' referenced
before assignment
I worked around this by adding
enc = sys.getdefaulte
at line 258. But then the script throws an error while
trying to remove members! Here's the traceback:
File "/home/
main()
File "/home/
name = mlist.getMember
File "/home/
line 128, in getMemberName
self.
File "/home/
line 113, in __assertIsMember
raise Errors.
Mailman.
If I change line 276 to just set name to '', then the
script completes successfully. Is it possible it's
trying to reference member name after the member has
already been deleted from the list?
Eric
[http://
Changed in mailman: | |
assignee: | nobody → Bernard Keimel (sladev5976) |
Changed in mailman: | |
assignee: | Bernard Keimel (sladev5976) → nobody |
While I think my fix was sufficient, I think a more elegant Name) further up in its clause, so that it's
one would be to move the offending line (i.e.,
mlist.getMember
called before the address is deleted from the list.