pynder icon indicating copy to clipboard operation
pynder copied to clipboard

KeyError: bio

Open nwatab opened this issue 7 years ago • 4 comments

session.neaby_users() sometimes fails with KeyError: bio. It is because an user of list which session._api.recs(limit=10) returns sometimes misses 'bio'.

pynder\models\user.py in init(self, data, session) 15 SIMPLE_FIELDS = ("name", "bio", "birth_date", "ping_time") 16 for f in SIMPLE_FIELDS: ---> 17 setattr(self, f, data[f]) 18 19 self.photos_obj = [p for p in data['photos']]

KeyError: 'bio'

nwatab avatar May 17 '17 06:05 nwatab

can you provide a full stack trace

charliewolf avatar May 23 '17 15:05 charliewolf

I am getting the same issue. Has this been resolved?

MichaelGofron avatar Jun 20 '17 02:06 MichaelGofron

This seems to have been an incompatibility in an older version of pynder. Probably a change in the backend api for Tinder. I fixed this by running pip install pynder --upgrade

MichaelGofron avatar Jun 20 '17 02:06 MichaelGofron

This problem is included Pictograph in looked message.

sudokzt avatar Nov 24 '18 10:11 sudokzt