From 8ebcb494368690682636d0a8f77150ecabba8a11 Mon Sep 17 00:00:00 2001 From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com> Date: Sat, 28 Sep 2024 06:18:31 -0300 Subject: [PATCH 1/2] Remove exception if no `X-RateLimit-Remaining` is not found in the header in the header --- tap_github/client.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tap_github/client.py b/tap_github/client.py index 92c02f35..6686fc30 100644 --- a/tap_github/client.py +++ b/tap_github/client.py @@ -160,10 +160,6 @@ def rate_throttling(response, max_sleep_seconds, min_remain_rate_limit): LOGGER.info("API rate limit exceeded. Tap will retry the data collection after %s seconds.", seconds_to_sleep) time.sleep(seconds_to_sleep) - else: - # Raise an exception if `X-RateLimit-Remaining` is not found in the header. - # API does include this key header if provided base URL is not a valid github custom domain. - raise GithubException("The API call using the specified base url was unsuccessful. Please double-check the provided base URL.") class GithubClient: """ From eedad3d218dc6bb3a1df0d6c801dbaa4f470123b Mon Sep 17 00:00:00 2001 From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com> Date: Sat, 28 Sep 2024 06:22:21 -0300 Subject: [PATCH 2/2] Remove exception if no `X-RateLimit-Remaining` is not found in the header in the header --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2271e6ea..3be29e12 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages setup(name='tap-github', - version='2.0.6', + version='2.0.7', description='Singer.io tap for extracting data from the GitHub API', author='Stitch', url='http://singer.io',