Browse Source
parse_date() unwraps the RFC 3339 parse, so a malformed start, end or continuationToken in a /public/events request panicked the handler and returned a 500. These values come straight from the query string. Adds parse_date_checked(), which returns None instead of panicking, and uses it for the three client supplied dates so an invalid one is reported as a normal error response. parse_date() keeps its previous behaviour for existing callers. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>pull/7570/head
2 changed files with 16 additions and 7 deletions
Loading…
Reference in new issue