Skip to content

Commit 84dcf64

Browse files
committed
Handle possible future cases of missing data in recordmap as well.
1 parent a59bfb2 commit 84dcf64

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

notion/store.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,11 @@ def call_load_page_chunk(self, page_id):
289289

290290
def store_recordmap(self, recordmap):
291291
for table, records in recordmap.items():
292-
if records is None: continue
292+
if not isinstance(records, dict):
293+
continue
293294
for id, record in records.items():
295+
if not isinstance(record, dict):
296+
continue
294297
self._update_record(
295298
table, id, value=record.get("value"), role=record.get("role")
296299
)

0 commit comments

Comments
 (0)