for result in res: if result['_number'] == change: for rev in result['revisions'].values(): if 'commit_with_footers' in rev: commit = rev['commit_with_footers'] break