Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 23, 2025
1 parent 5c90df0 commit 09f843d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tap_github/repository_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -1459,7 +1459,7 @@ def parse_response(self, response: requests.Response) -> Iterable[dict]:
if content_length > max_size:
self.logger.info(
f"Skipping PR. The diff size ({content_length / 1024 / 1024:.2f} MiB) exceeded the maximum size limit of 40 MiB."
) # noqa: E501
)
return

yield {"diff": response.text}
Expand All @@ -1470,7 +1470,7 @@ def validate_response(self, response: requests.Response) -> None:
contents = response.json()
self.logger.info(
f"Skipping PR due to {response.status_code} error: {contents['message']}"
) # noqa: E501
)
return
super().validate_response(response)

Expand Down

0 comments on commit 09f843d

Please sign in to comment.