AttributeError when collecting blocks from non-dict table cells
Showing
1 changed file
with
2 additions
and
1 deletions
| @@ -914,7 +914,8 @@ class HTMLRenderer: | @@ -914,7 +914,8 @@ 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 | - collected.extend(self._collect_blocks_from_payload(cell.get("blocks"))) | 917 | + if isinstance(cell, dict): |
| 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: |
| 920 | for item in payload["items"]: | 921 | for item in payload["items"]: |
-
Please register or login to post a comment