AttributeError when collecting blocks from non-dict table cells
Showing
1 changed file
with
1 additions
and
0 deletions
| @@ -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: |
-
Please register or login to post a comment