fix: guard against null progress in nudge check#806
Conversation
data.get('progress', {}) returns None when key exists with null value.
Use 'or {}' fallback to prevent AttributeError on progress.get().
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideGuards against Unity sending null progress data by normalizing the File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe pull request modifies progress handling in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
✨ Finishing Touches
🧪 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 |
Summary
data.get("progress", {})returningNonewhen Unity sends"progress": null(e.g. before first test starts), which would causeAttributeErroron the subsequent.get()callwait_timeoutpolling path and the fire-and-forget nudge pathAddresses missed CodeRabbit feedback from #804.
Test plan
🤖 Generated with Claude Code
Summary by Sourcery
Bug Fixes:
Summary by CodeRabbit