From 78a91e2cecbdf9d089b718a5ff4601e02300a2bc Mon Sep 17 00:00:00 2001 From: Cameron Pfiffer Date: Sun, 22 Mar 2026 12:06:16 -0700 Subject: [PATCH] fix: handle non-string posts in constitutional_linter --- src/void_tools/constitutional_linter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/void_tools/constitutional_linter.py b/src/void_tools/constitutional_linter.py index da9c6bd..f2ec577 100755 --- a/src/void_tools/constitutional_linter.py +++ b/src/void_tools/constitutional_linter.py @@ -81,6 +81,10 @@ def lint_outbox(filepath): continue for i, post in enumerate(action['posts']): + # Skip non-string posts (e.g., dicts from malformed YAML) + if not isinstance(post, str): + logging.warning(f"Target: {action.get('target_id')} | Post {i+1} is not a string, skipping trope check.") + continue errors = lint_text(post) if errors: has_errors = True -- 2.51.2