GearPlug/microsoftgraph-python

KeyError when passing folder_id param to Mail().list_messages()

Closed this issue · 1 comments

In the file mail.py:

line 32 url = "me/mailFolders/{id}/messages".format(folder_id) if folder_id else "me/messages"

should be

url = "me/mailFolders/{id}/messages".format(id=folder_id) if folder_id else "me/messages"

or better again use f-strings!

Hello, sorry for the late response.

This should be fixed now.

Thanks!