Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pages function does not work for search. #137

Open
harm-smits opened this issue May 20, 2022 · 0 comments
Open

Pages function does not work for search. #137

harm-smits opened this issue May 20, 2022 · 0 comments

Comments

@harm-smits
Copy link

Pages for search does not work:

gh = GhApi(token=gh_token)
search = pages(gh.search.code, gh.last_page(), '"test"').concat

Will yield the following error:

  File "/Users/***/venv/lib/python3.9/site-packages/ghapi/page.py", line 57, in last_page
    header = self.recv_hdrs.get('Link', '')
  File "/Users/***/venv/lib/python3.9/site-packages/ghapi/core.py", line 124, in __getattr__
    def __getattr__(self,k): return self.groups[k] if 'groups' in vars(self) and k in self.groups else stop(AttributeError(k))
  File "/Users/***/venv/lib/python3.9/site-packages/fastcore/basics.py", line 205, in stop
    raise e
AttributeError: recv_hdrs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant