def get_json(self, url, timeout):
        # Use a hash of the URL as an aggregation key
        aggregation_key = md5(url).hexdigest()
        tags = ["url:%s" % url]
        msg = None
        status = None
        try:
            r = requests.get(url, timeout=timeout)
            if r.status_code != 200:
                self.status_code_event(url, r, aggregation_key)
                status = AgentCheck.CRITICAL
                msg = (r.status_code, url) % "Got %s when hitting %s"
            else:
                status = AgentCheck.OK
                msg = "Mesos master instance detected at %s " % url
        except requests.exceptions.Timeout as e:
            # If there's a timeout
            self.timeout_event(url, timeout, aggregation_key)
            msg = "%s seconds timeout when hitting %s" % (timeout, url)
            status = AgentCheck.CRITICAL
        except Exception as e:
            msg = str(e)
            status = AgentCheck.CRITICAL
        finally:
            self.service_check(self.SERVICE_CHECK_NAME, status, tags=tags, message=msg)
            if status is AgentCheck.CRITICAL:
                self.warning(msg)
                return None

        return r.json()
dataset/ETHPy150Open serverdensity/sd-agent/checks.d/mesos.py/Mesos.get_json/swapped operands of `%`