You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2021. It is now read-only.
Traceback (most recent call last):
File "tmp.py", line 14, in
mail.send_message(message)
File "/usr/lib/python3.7/site-packages/office365api/mail/base.py", line 76, in send_message
data = message.data
File "/usr/lib/python3.7/site-packages/office365api/model/model.py", line 59, in data
return {self.class.name: dict(self)}
File "/usr/lib/python3.7/site-packages/office365api/model/model.py", line 8, in getattr
return self[name]
TypeError: 'Message' object is not subscriptable
Your code worked fine in Python 3.6. Thanks!
By trial and error I found out that modification below fixes this issue for Python 3.7. I didn't test it on any other Python versions as code only runs on one dedicated server.