Publish curated ITWorx-ModelForge source from 990401737f96c8d46a9f7b0d84994516cadcb6a0
This commit is contained in:
1 parent
7082ab955a
commit
848f0d8f8a
434 files changed
+67298
-4315
No files matched your search
@@ -126,7 +126,8 @@ def _decode_canonical_audit_payload(value: str) -> dict[str, Any]:
|
||||
|
||||
decoded = json.loads(value, object_pairs_hook=reject_duplicate_keys)
|
||||
if not isinstance(decoded, dict):
|
||||
raise ValueError("canonical audit payload is not an object")
|
||||
# The string is valid JSON but an invalid persisted audit value, not a caller type error.
|
||||
raise ValueError("canonical audit payload is not an object") # noqa: TRY004
|
||||
return decoded
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user