Format Milestone 4 hardening code
This commit is contained in:
parent
cca374bf99
commit
663811b1d3
2 changed files with 7 additions and 12 deletions
|
|
@ -178,9 +178,7 @@ def write_extraction_cache(
|
|||
for source in cache.sources
|
||||
],
|
||||
}
|
||||
encoded = (
|
||||
json.dumps(document, sort_keys=True, separators=(",", ":")).encode("utf-8") + b"\n"
|
||||
)
|
||||
encoded = json.dumps(document, sort_keys=True, separators=(",", ":")).encode("utf-8") + b"\n"
|
||||
if len(encoded) > max_bytes:
|
||||
raise DocForgeError(
|
||||
"cache_limit",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue