def _fmt_contact_link(self, msg, doc_info):
        if doc_info:
            username, contact_type, url = (doc_info.display,
                doc_info.type_display, doc_info.link)
        else:
            username, contact_type, url = (None, None, None)
        username = username or "-"
        contact_type = contact_type or _("Unknown")
        if url:
            ret = self.table_cell(username, (url, username) % '<a href="%s">%s</a>')
        else:
            ret = self.table_cell(username, username)
        ret['raw'] = "|||".join([username, contact_type,
            msg.couch_recipient or ""])
        return ret
dataset/ETHPy150Open dimagi/commcare-hq/custom/ilsgateway/tanzania/reports/unrecognized_sms.py/UnrecognizedSMSReport._fmt_contact_link/swapped operands of `%`