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

[pre-commit.ci] pre-commit autoupdate #88

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.1
rev: v0.4.2
hooks:
- id: ruff
- id: ruff-format
8 changes: 4 additions & 4 deletions dynamics/client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def process_get_response(self, response: Response, *, not_found_ok: bool) -> Dyn

try:
data = response.json()
except Exception as error: # noqa: BLE001
except Exception as error:
raise self.handled_error(
status_code=response.status_code,
error_message=f"{error!s}. Response: {response.text}",
Expand Down Expand Up @@ -348,7 +348,7 @@ def process_post_response(self, response: Response) -> DynamicsClientPostRespons

try:
data = response.json()
except Exception as error: # noqa: BLE001
except Exception as error:
raise self.handled_error(
status_code=response.status_code,
error_message=f"{error!s}. Response: {response.text}",
Expand Down Expand Up @@ -393,7 +393,7 @@ def process_patch_response(self, response: Response) -> DynamicsClientPatchRespo

try:
data = response.json()
except Exception as error: # noqa: BLE001
except Exception as error:
raise self.handled_error(
status_code=response.status_code,
error_message=f"{error!s}. Response: {response.text}",
Expand Down Expand Up @@ -431,7 +431,7 @@ def process_delete_response(self, response: Response) -> None:

try:
data = response.json()
except Exception as error: # noqa: BLE001
except Exception as error:
raise self.handled_error(
status_code=response.status_code,
error_message=f"{error!s}. Response: {response.text}",
Expand Down
2 changes: 1 addition & 1 deletion dynamics/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def inner(*args: P.args, **kwargs: P.kwargs) -> T:

try:
return func(*args, **kwargs)
except Exception as error: # noqa: BLE001
except Exception as error:
logger.warning(error)
if not simplify_errors or any(isinstance(error, exception) for exception in raise_separately):
raise
Expand Down
Loading