Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion infra/lambda/poller/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,10 @@ def filter_to_favoriters(
_held = held_ll_by_ride.get(ride_id)
_ll_beats_held = True
if _held:
_avail = _parse_iso(attr.get("ll", {}).get("return_start"))
# `or {}` — attr["ll"] is present-but-None for a held-LL
# ride with no current offer; .get(k, {}) would return
# None (default is only used on a MISSING key), crashing.
_avail = _parse_iso((attr.get("ll") or {}).get("return_start"))
_held_dt = _parse_iso(_held)
_ll_beats_held = bool(_avail and _held_dt and _avail < _held_dt)
if (
Expand Down
Loading