try:
members = client.lists.members.create('xxxxxx', {
'email_address': 'example@123.com,
'status': 'subscribed'
})
except MailChimpError as e:
print(e['status'])
return {
'status': 200
}
I run the above code, it should raise a MailChimpError exception, but when I try to read the property status, I got a new exception that 'MailChimpError' object is not subscriptable.
How can I fix it?