refactor
BREAKING
task/wire-load-json-file
#2 / 2
refactor: wire load_json_file into all json.loads(path.read_text()) try/except sites
Replace 21 repeated try/except json.loads(path.read_text()) blocks across 14 files with the canonical load_json_file() helper from muse.core._types. For sites with size-check guards before json.loads, split the try into separate OSError and load_json_file calls. Remove import json from snapshot.py and registry.py where it was the only remaining usage.
sha256:039d2425414ff671b3ea7c7f88332e20a194f10b320dd06f74d9c59429da90c3
sha
sha256:edf1f785c9ff8fb37d2080de42704b37849bb9165b2b12c70303232445d5e940
snapshot
← Older
Oldest on task/wire-load-json-file
All commits
Newer
feat: add load_json_file and now_utc_iso to muse.core._types
sha256:51cc2dd5d101e109a88c0b5e67bf775b54f5b1a52a848b42826711fef61a16d4
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:039d2425414ff671b3ea7c7f88332e20a194f10b320dd06f74d9c59429da90c3 --body "your comment"
No comments yet. Be the first to start the discussion.