in libmozdata/bugzilla.py [0:0]
def __comment_cb(self, res, *args, **kwargs):
"""Callback for bug comment
Args:
sess: session
res: result
"""
if res.status_code == 200:
json = res.json()
if "bugs" in json:
bugs = json["bugs"]
if bugs:
for key in bugs.keys():
if isinstance(key, six.string_types) and key.isdigit():
comments = bugs[key]
self.commenthandler.handle(comments, key)
elif self.RAISE_ERROR:
res.raise_for_status()