feat(perception): connect full graph to external streaming source and scene receiver
This commit is contained in:
@@ -105,8 +105,11 @@ def _unique_pairs(pairs: list[tuple[str, Any]]) -> dict[str, Any]:
|
||||
|
||||
|
||||
def parse_header(raw: bytearray) -> dict[str, Any]:
|
||||
def reject_constant(value: str) -> Any:
|
||||
raise StreamWireError("non-finite JSON metadata")
|
||||
|
||||
try:
|
||||
value = json.loads(raw, object_pairs_hook=_unique_pairs)
|
||||
value = json.loads(raw, object_pairs_hook=_unique_pairs, parse_constant=reject_constant)
|
||||
except (ValueError, UnicodeError, RecursionError) as exc:
|
||||
raise StreamWireError("invalid bounded metadata") from exc
|
||||
if not isinstance(value, dict):
|
||||
|
||||
Reference in New Issue
Block a user