Skip to content

Commit 37a033c

Browse files
committed
fix: json loads
1 parent eee5bb4 commit 37a033c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/committer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def get_request_url(edit_url: str) -> str:
7171
def on_pre_build(self, config):
7272
if os.path.exists(self.cache_file):
7373
with open(self.cache_file, "r") as f:
74-
cache = f.read()
74+
cache = json.loads(f.read())
7575
self.cache_date = cache["cache_date"]
7676
self.cache_page_authors = cache["page_authors"]
7777

0 commit comments

Comments
 (0)