Hi Mark. I put a print_dict(email_D) and ALL records are email; (name surname) and no empty values are present. To be sure I've modified code...
for mail, nom in email_D.items(): # Loop over Dictionary items (Email, Name) if (mail) and (nom): print(info.subscribe(mail, nom, pre_verified=True, pre_confirmed=True, send_welcome_message=False, pre_approved=True))
Same error. I tried also with Python 3.8 and last mailmanclient version: /usr/local/bin/pip3.8 freeze | grep mailman mailman==3.3.5 mailmanclient==3.3.3
Always the same error: Traceback (most recent call last): File "./fill_list.py", line 75, in <module> print(info.subscribe(mail, nom, pre_verified=True, pre_confirmed=True, send_welcome_message=False, pre_approved=True)) File "/home/sciadmin/.local/lib/python3.8/site-packages/mailmanclient/restobjects/mailinglist.py", line 492, in subscribe response, content = self._connection.call('members', data) File "/home/sciadmin/.local/lib/python3.8/site-packages/mailmanclient/restbase/connection.py", line 160, in call raise HTTPError(params.get('url'), response.status_code, urllib.error.HTTPError: HTTP Error 400: Invalid Parameter "subscriber": .