namaggarwal / splitwise

Python SDK for Splitwise
MIT License
183 stars 46 forks source link

getNotifictaions() error #96

Open OrGur1987 opened 2 months ago

OrGur1987 commented 2 months ago

hi there, tried to use the above function after doing all the necessary authorization, and got the following error:

File "...\venv\lib\site-packages\splitwise\__init__.py", line 942, in getNotifications
    notifications.append(Notification(n))
File "...\venv\lib\site-packages\splitwise\notification.py", line 28, in __init__
    self.source = Source(data["source"])
File "...\venv\lib\site-packages\splitwise\notification.py", line 104, in __init__
    self.url = data["url"]
KeyError: 'url'

your package worked fine for me with getExpenses(), so maybe something changed in the Splitwise API for notifications and it requires adjustments?

all the best, Or.