@util.cached_property
    def correspondent_id(self):
        """
        :returns: The id assigned to the correspondent of this message.
        """
        try:
            return int(self._thread_element.attrib['data-personid'])
        except (__HOLE__, KeyError):
            try:
                return int(self.correspondent_profile.id)
            except:
                pass
dataset/ETHPy150Open IvanMalison/okcupyd/okcupyd/messaging.py/MessageThread.correspondent_id