马一丁

AttributeError when collecting blocks from non-dict table cells

@@ -914,6 +914,7 @@ class HTMLRenderer: @@ -914,6 +914,7 @@ class HTMLRenderer:
914 return collected 914 return collected
915 if payload.get("cells") and not block_type: 915 if payload.get("cells") and not block_type:
916 for cell in payload["cells"]: 916 for cell in payload["cells"]:
  917 + if isinstance(cell, dict):
917 collected.extend(self._collect_blocks_from_payload(cell.get("blocks"))) 918 collected.extend(self._collect_blocks_from_payload(cell.get("blocks")))
918 return collected 919 return collected
919 if payload.get("items") and not block_type: 920 if payload.get("items") and not block_type: