Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#63)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](pre-commit/pre-commit-hooks@v4.4.0...v4.5.0)
- [github.com/psf/black: 23.9.1 → 23.10.1](psf/black@23.9.1...23.10.1)
- [github.com/pre-commit/mirrors-mypy: v1.5.1 → v1.6.1](pre-commit/mirrors-mypy@v1.5.1...v1.6.1)

* Fix type

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Pankaj <[email protected]>
  • Loading branch information
2 people authored and csaller committed Oct 30, 2023
1 parent 90b3d47 commit 0510e43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- id: check-useless-excludes

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-merge-conflict
- id: check-yaml
Expand Down Expand Up @@ -34,7 +34,7 @@ repos:
- id: remove-tabs

- repo: https://github.com/psf/black
rev: 23.9.1
rev: 23.10.1
hooks:
- id: black

Expand All @@ -51,7 +51,7 @@ repos:
args: ["--profile=black"]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.5.1'
rev: 'v1.6.1'
hooks:
- id: mypy
additional_dependencies:
Expand Down
3 changes: 2 additions & 1 deletion fivetran_provider_async/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ def _do_api_call(
if not _retryable_error(e):
# In this case, the user probably made a mistake.
# Don't retry.
assert e.response is not None
raise AirflowException(
f"Response: {e.response.content}, " f"Status Code: {e.response.status_code}"
f"Response: {e.response.content.decode()}, " f"Status Code: {e.response.status_code}"
)

self._log_request_error(attempt_num, str(e))
Expand Down

0 comments on commit 0510e43

Please sign in to comment.