GearPlug / microsoftgraph-python

Microsoft Graph API wrapper written in Python
MIT License
96 stars 40 forks source link

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

Closed cormac-everhaze closed 1 year ago

cormac-everhaze commented 2 years ago

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!

ingmferrer commented 1 year ago

Hello, sorry for the late response.

This should be fixed now.

Thanks!