notmarek / BeFake

BeReal Python API wrapper
131 stars 29 forks source link

KeyError: 'notification_id' #99

Closed terminator527 closed 1 year ago

terminator527 commented 1 year ago

Capture d'écran 2023-05-07 111237

Hello, this problem appears when I want to retrieve the "feed friends". There is just this bug with this option. Does anyone know how to fix this?

Thanks in advance

omtoi101 commented 1 year ago

Same here code either throws 1 File "/root/projects/snooper5.py", line 44, in __init__ self.profile_picture = data_dict["user"].get("profilePicture", {}).get("url", "") AttributeError: 'NoneType' object has no attribute 'get' or 2 File "/usr/local/lib/python3.9/dist-packages/BeFake/__main__.py", line 197, in feed _realmoji_location = _realmoji_location.format(user=emoji.username, type=emoji.type, feed_id=feed_id, KeyError: 'notification_id' errors when running befake feed friends

valerierx commented 1 year ago

Fixed with 2a112cce4489f7ceb81a3883b4eda7930106df2c