From 7d57623755e68c2310c2c87ada31128b9b1989b9 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Tue, 24 Mar 2015 11:43:55 -0700 Subject: [PATCH] Convert result of a call to JSON. I still had the service that was relying on this running on top of local changes, so this hadn't been a problem yet. Change-Id: I63b45b8c7cf81972dbb7128013c1c777a2342d4c --- tools/bionicbb/gerrit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/bionicbb/gerrit.py b/tools/bionicbb/gerrit.py index 76e42b421..40719b48a 100644 --- a/tools/bionicbb/gerrit.py +++ b/tools/bionicbb/gerrit.py @@ -62,8 +62,8 @@ def get_labels(change_id, patch_set): } } """ - details = call('/changes/{}/revisions/{}/review'.format( - change_id, patch_set)) + details = json.loads(call('/changes/{}/revisions/{}/review'.format( + change_id, patch_set))) labels = {'Code-Review': {}, 'Verified': {}} for review in details['labels']['Code-Review']['all']: if 'value' in review and 'email' in review: