colonelpanic8/okcupyd

IndexError: list index out of range when getting the id of a profile.

Closed this issue · 3 comments

----> 1 p.rate(4)

/Users/imalison/Projects/okcupyd/okcupyd/profile.pyc in rate(self, rating)
277 parameters = {
278 'voterid': self._current_user_id,
--> 279 'target_userid': self.id,
280 'type': 'vote',
281 'cf': 'profile2',

/Users/imalison/Projects/okcupyd/okcupyd/util/init.pyc in get(self, obj, cls)
47 if obj is None:
48 return self
---> 49 value = self.func(obj)
50 setattr(obj, self.func.name, value)
51 return value

/Users/imalison/Projects/okcupyd/okcupyd/profile.pyc in id(self)
181 if self.is_logged_in_user: return self.current_user_id
182 return int(self.rating_xpb.select_attribute('id').
--> 183 one
(self.profile_tree).split('-')[-2])
184
185 @util.cached_property

/Users/imalison/Projects/okcupyd/okcupyd/xpath.pyc in one_(self, tree)
69
70 def one_(self, tree):
---> 71 return self.apply_(tree)[0]
72
73 def get_text_(self, tree):

IndexError: list index out of range

http://i.imgur.com/DWpbhGs.jpg

Getting the same issue. Not sure if that will help you.

Yeah I'm not really sure what is going on here. How often is it happening for you. Can you send me the name of a user for which this happens?

I think that this may have to do with the fact that they just changed ratings for a number of stars system to a like/dislike system.