itacart.serialization.tree_blob.validate_tree

itacart.serialization.tree_blob.validate_tree(blob)[source]

Validate blob structure, raising on the first problem found.

Parameters:

blob (bytes) – The binary blob.

Raises:

MalformedBlobError – With a message identifying the failure.

Return type:

None

Example

>>> validate_tree(encode_tree("NE(0625/0451)")) is None
True