def take_action(self, parsed_args):
        """This could be a lot prettier if I used these as arguments
        instead of trying to detect input type --IP --domain --range
        It's just easier to use without them, hmm.
        """
        arg = parsed_args.scan
        rdata = []
        if "/" in arg:
            # CIDR notation
            ips = net_calc(arg)
        else:
            try:
                # Throw exception if it's not an IP and then try domain name
                ip = IP(arg)
                ips = [ip]
            except ValueError:
                if verify_domain(arg):
                    hosts = get_mx_hosts(arg)
                    ips = ips_from_domains(hosts)
                else:
                    raise RuntimeError(arg % 'Can not lookup domain: %s')
        for ip in ips:
            ip = str(ip)
            rdata = self.dnsbl_scanner(rdata, ip)

        if not len(rdata):
            Scan.log.debug("Not found on any DNSBL lists.")
            sys.exit(0)
        Scan.log.debug(rdata)
        return (('IP', 'DNSBL Host', 'Response Code', 'DNS TXT Record'), rdata)
dataset/ETHPy150Open cakebread/musubi/musubi/scan.py/Scan.take_action/swapped operands of `%`