def the_ticket(self, html):
        """
            Should only have a ticket if it is broken,
            but won't always have a ticket to display.
        """
        if hasattr(self, "ticket"):
            if html:
                return (self.ticket) % "<a href=%s target=\"_blank\">Ticket</a>"
            else:
                return "Ticket: %s" % (self.ticket)
        return "no ticket"
dataset/ETHPy150Open sahana/eden/modules/tests/smoke/broken_links.py/ReportData.the_ticket/swapped operands of `%`