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

better handle API response #100

Open
ChrisCarini opened this issue Aug 3, 2023 · 0 comments
Open

better handle API response #100

ChrisCarini opened this issue Aug 3, 2023 · 0 comments

Comments

@ChrisCarini
Copy link
Owner

Traceback (most recent call last):
  File "main.py", line 34, in <module>
    main()
  File "main.py", line 24, in main
    update_gist(
  File "/home/runner/work/shodan-exposure-box/shodan-exposure-box/shodan.py", line 84, in update_gist
    gist.edit(
  File "/opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/github/Gist.py", line 258, in edit
    headers, data = self._requester.requestJsonAndCheck(
  File "/opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/github/Requester.py", line 443, in requestJsonAndCheck
    *self.requestJson(
  File "/opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/github/Requester.py", line 580, in requestJson
    return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode)
  File "/opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/github/Requester.py", line 694, in __requestEncode
    int(responseHeaders[Consts.headerRateRemaining]),
ValueError: invalid literal for int() with base 10: '99.0'
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