def correspondent_id(self):
        """
        :returns: The id assigned to the correspondent of this message.
        """
        try:
            return int(self._thread_element.attrib['data-personid'])
        except (ValueError, KeyError):
            try:
                return int(self.correspondent_profile.id)
            except:
                pass
def correspondent_id ( self ) : try : return int ( self . _thread_element . attrib [ 'data-personid' ] ) except ( ValueError , KeyError ) : try : return int ( self . correspondent_profile . id ) except : pass
:returns: The id assigned to the correspondent of this message.