Added correct exception in Chunks parse output #346
1 changed files with 1 additions and 1 deletions
|
@ -161,5 +161,5 @@ class ChunksOperations(interfaces.ChunksInterface):
|
|||
def _parse_object_nodes(self, object_nodes: str) -> list[Chunk]:
|
||||
parse_result = json.loads(object_nodes)
|
||||
if parse_result.get("errors"):
|
||||
raise parse_result["errors"]
|
||||
raise RuntimeError(", ".join(parse_result["errors"]))
|
||||
return [Chunk(**chunk) for chunk in parse_result["data_objects"]]
|
||||
|
|
Loading…
Add table
Reference in a new issue