colonelpanic8 / okcupyd

A Library that enables programmatic interaction with okcupid.com, using okcupid.com's private okcupid JSON API and html scraping when necessary.
MIT License
109 stars 18 forks source link

KeyError: 'w' (new gender representation?) #35

Closed colonelpanic8 closed 9 years ago

colonelpanic8 commented 9 years ago
/usr/local/lib/python2.7/dist-packages/okcupyd/user.pyc in search(self, **kwargs)
    148         kwargs.setdefault('gender', self.profile.gender[0])
    149         gentation = helpers.get_default_gentation(self.profile.gender,
--> 150                                                   self.profile.orientation)
    151         kwargs.setdefault('gentation', gentation)
    152         kwargs.setdefault('location', self.profile.location)

/usr/local/lib/python2.7/dist-packages/okcupyd/helpers.pyc in get_default_gentation(gender, orientation)
    279     gender = gender.lower()[0]
    280     orientation = orientation.lower()
--> 281     return gender_to_orientation_to_gentation[gender][orientation]
    282
    283

KeyError: 'w'
colonelpanic8 commented 9 years ago

This should be fixed in the newest version. Not sure why this was encountered...