Retire the section-headers decision, reject an interrupt without a question, and name file_writes by what it does
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import json
|
||||
import sys
|
||||
|
||||
from loop_claude.private_file import replace_json
|
||||
from loop_claude.file_writes import replace_json
|
||||
|
||||
|
||||
def trust(config, roots):
|
||||
@@ -15,7 +15,7 @@ def trust(config, roots):
|
||||
if not isinstance(projects, dict):
|
||||
print(f"could not read {config}: not an object whose \"projects\" is an object", file=sys.stderr)
|
||||
return
|
||||
if wrong := next((path for path, record in projects.items() if not isinstance(record, dict)), None):
|
||||
if (wrong := next((path for path, record in projects.items() if not isinstance(record, dict)), None)) is not None:
|
||||
print(f"could not read {config}: projects[{json.dumps(wrong)}] is not an object", file=sys.stderr)
|
||||
return
|
||||
untrusted = [path for path in roots if not projects.get(path, {}).get("hasTrustDialogAccepted")]
|
||||
|
||||
Reference in New Issue
Block a user