Skip to content

Commit ca66290

Browse files
committed
Start simplifying
1 parent 1a3baf5 commit ca66290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_notion_scripts/upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ def load_and_process_contents(file_path: Path) -> list[_Block]:
484484
Load a JSON file from disk and preprocess its blocks to handle Notion's
485485
rich text length limits.
486486
"""
487-
with file_path.open("r", encoding="utf-8") as f:
487+
with file_path.open(mode="r", encoding="utf-8") as f:
488488
contents = json.load(fp=f)
489489

490490
# Workaround Notion 2k char limit: preprocess contents

0 commit comments

Comments
 (0)