Skip to content

Commit f03ace6

Browse files
authored
Improvement: Do not dump raw object during decoding (#169)
Do not dump raw object during decoding
1 parent b1023a7 commit f03ace6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

conjure_python_client/_serde/decoder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ def check_null_field(
8989
deserialized[python_arg_name] = {}
9090
else:
9191
raise Exception(
92-
"field {} not found in object {}".format(
93-
field_definition.identifier, obj
92+
"field {} not found in the object".format(
93+
field_definition.identifier
9494
)
9595
)
9696

test/serde/test_decode_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_object_with_missing_field_should_throw_helpful_exception():
5959
ConjureDecoder().read_from_string(
6060
"""{"path": "bar", "redundant": 1}""", CreateDatasetRequest
6161
)
62-
message_regex = re.compile("field fileSystemId not found in object {.+}")
62+
message_regex = re.compile("field fileSystemId not found in the object")
6363
assert message_regex.match(str(excinfo.value)), excinfo.value
6464

6565

0 commit comments

Comments
 (0)