Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Aug 14, 2024
1 parent a4a647a commit 59b631b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ def _get_http_exception_kwargs(
service_name: str,
service_error: httpx.HTTPStatusError,
http_status_map: HttpStatusMap,
**ctx: Any,
**exception_ctx: Any,
):
detail: str = ""
headers: dict[str, str] = {}

if exception_type := http_status_map.get(service_error.response.status_code):
raise exception_type(**ctx)
raise exception_type(**exception_ctx)

if service_error.response.status_code in {
status.HTTP_429_TOO_MANY_REQUESTS,
Expand Down

0 comments on commit 59b631b

Please sign in to comment.