We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a3baf5 commit ca66290Copy full SHA for ca66290
src/_notion_scripts/upload.py
@@ -484,7 +484,7 @@ def load_and_process_contents(file_path: Path) -> list[_Block]:
484
Load a JSON file from disk and preprocess its blocks to handle Notion's
485
rich text length limits.
486
"""
487
- with file_path.open("r", encoding="utf-8") as f:
+ with file_path.open(mode="r", encoding="utf-8") as f:
488
contents = json.load(fp=f)
489
490
# Workaround Notion 2k char limit: preprocess contents
0 commit comments