Skip to content

fix(poller): held-LL None crash aborted the whole poll#30

Merged
illinigirl merged 1 commit into
mainfrom
fix/poller-ll-none-crash
Jul 3, 2026
Merged

fix(poller): held-LL None crash aborted the whole poll#30
illinigirl merged 1 commit into
mainfrom
fix/poller-ll-none-crash

Conversation

@illinigirl

Copy link
Copy Markdown
Owner

attr.get('ll', {}) returns None for a present-but-None ll (held-LL ride with no offer), crashing the poll. Fix: (attr.get('ll') or {}). Already hotfix-deployed.

🤖 Generated with Claude Code

…e had no LL offer

attr.get("ll", {}) returns None (not {}) when the "ll" key is PRESENT but
None — which is exactly a held-LL ride with no current offer (TRON, Seven
Dwarfs after Megan set her holds). .get("return_start") then ran on None
→ AttributeError → the exception propagated to the handler and ABORTED
the entire poll, so no alerts fired every 2 min until caught (a
CloudWatch alarm surfaced it).

Fix: `(attr.get("ll") or {})` — coerce present-but-None to {}. The
.get(key, default) default only applies to a MISSING key, not a None
value.

Follow-up worth doing: wrap the per-attraction alert body in try/except
so one ride's bug can never again silence ALL alerts (blast radius was
the whole poll).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@illinigirl illinigirl merged commit 84af90f into main Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant