fix: wpprobe json parsing error#1212
Conversation
wpprobe outputs JSON but on_cmd_done was parsing it with yaml.safe_load, causing a ParserError when the file contained JSON objects. Co-authored-by: Olivier Cervello <ocervell@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughIn Changeswpprobe JSON parsing fix
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fix wpprobe crashing with yaml.parser.ParserError when parsing JSON output.
The on_cmd_done method was using yaml.safe_load() to read the wpprobe output file, but wpprobe outputs JSON. Replaced with json.load() and removed the unused yaml import.
Fixes #1207
Generated with Claude Code
Summary by CodeRabbit