Open miguoliang opened 4 years ago
If you update your code to print(e[0]['status'])
it will return the status code you desire without an error.
I have similar code if I do the e[0]["status"]
think it just says "TypeError: 'MailChimpError' object does not support indexing" instead.
I did run into the same issue, surely is broken currently. Workaround:
print(e.args[0].get("status"))
I have the same issue. Using 3.0.14
I am running into the same issue. Has a solution to this been implemented?
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?