Skip to content

Commit

Permalink
Fix issues with running the tap and with bills execution
Browse files Browse the repository at this point in the history
  • Loading branch information
butkeraites-hotglue committed Sep 26, 2024
1 parent f434ac8 commit d3fb18c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ keywords = [
license = "Apache-2.0"

[tool.poetry.dependencies]
python = ">=3.7.1,<4"
singer-sdk = { version="~=0.33.1" }
python = ">=3.7.1,<3.11"
singer-sdk = {git = "https://github.com/hotgluexyz/singer-sdk.git", rev = "v0.4.3"}
fs-s3fs = { version = "~=1.1.1", optional = true }
requests = "~=2.31.0"

[tool.poetry.group.dev.dependencies]
pytest = ">=7.4.0"
singer-sdk = { version="~=0.33.1", extras = ["testing"] }
singer-sdk = {git = "https://github.com/hotgluexyz/singer-sdk.git", rev = "v0.4.3", extras = ["testing"]}

[tool.poetry.extras]
s3 = ["fs-s3fs"]
Expand Down
5 changes: 2 additions & 3 deletions tap_restaurant365/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from dateutil import parser
from singer_sdk.authenticators import BasicAuthenticator
from singer_sdk.exceptions import FatalAPIError, RetriableAPIError
from singer_sdk.pagination import BaseAPIPaginator # noqa: TCH002
from singer_sdk.streams import RESTStream

_Auth = Callable[[requests.PreparedRequest], requests.PreparedRequest]
Expand Down Expand Up @@ -103,8 +102,8 @@ def get_url_params(

def validate_response(self, response: requests.Response) -> None:
if (
response.status_code in self.extra_retry_statuses
or response.status_code >= HTTPStatus.INTERNAL_SERVER_ERROR
response.status_code >= HTTPStatus.INTERNAL_SERVER_ERROR
or (hasattr(self, "extra_retry_statuses") and response.status_code in self.extra_retry_statuses)
):
msg = self.response_error_message(response)
raise RetriableAPIError(msg, response)
Expand Down

0 comments on commit d3fb18c

Please sign in to comment.