def __history_cb()

in libmozdata/bugzilla.py [0:0]


    def __history_cb(self, res, *args, **kwargs):
        """Callback for bug history

        Args:
            sess: session
            res: result
        """
        if res.status_code == 200:
            json = res.json()
            if "bugs" in json and json["bugs"]:
                for h in json["bugs"]:
                    self.historyhandler.handle(h)
        elif self.RAISE_ERROR:
            res.raise_for_status()