Skip to content

Commit

Permalink
Handle response error in sync function (#437)
Browse files Browse the repository at this point in the history
* Handle response error in sync function

* Bump version
  • Loading branch information
mallport authored Feb 14, 2025
1 parent 6d405fb commit 9dd288a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dapla-toolbelt-pseudo"
version = "2.2.8"
version = "2.2.9"
description = "Pseudonymization extensions for Dapla"
authors = ["Dapla Developers <[email protected]>"]
license = "MIT"
Expand Down
1 change: 1 addition & 0 deletions src/dapla_pseudo/v1/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def pseudonymize_field_runner(
json={"request": request.model_dump(by_alias=True)},
timeout=timeout,
)
PseudoClient._handle_response_error_sync(response)
payload = msgspec.json.decode(response.content.decode("utf-8"))
data = payload["data"]
metadata = RawPseudoMetadata(
Expand Down

0 comments on commit 9dd288a

Please sign in to comment.