Use correct variable from response in github_key (#25846)
Before fix, logic tries to access info from 're' library which raises AttributeError. Fix adds correct variable usage for accessing next/previous search results from github api. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
189375c611
commit
dca887a6dc
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class GitHubResponse(object):
|
||||||
def links(self):
|
def links(self):
|
||||||
links = {}
|
links = {}
|
||||||
if 'link' in self.info:
|
if 'link' in self.info:
|
||||||
link_header = re.info['link']
|
link_header = self.info['link']
|
||||||
matches = re.findall('<([^>]+)>; rel="([^"]+)"', link_header)
|
matches = re.findall('<([^>]+)>; rel="([^"]+)"', link_header)
|
||||||
for url, rel in matches:
|
for url, rel in matches:
|
||||||
links[rel] = url
|
links[rel] = url
|
||||||
|
|
Loading…
Reference in a new issue