Skip to content
This repository was archived by the owner on Jul 11, 2025. It is now read-only.

Fix: Handle missing email in checkout and process_order #34

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

seer-by-sentry[bot]
Copy link

@seer-by-sentry seer-by-sentry bot commented Jul 9, 2025

Fixes ANDROID-51. The issue was that: Flask checkout function raises KeyError accessing order["email"] because the Android request payload lacks the "email" field.

  • Uses .get to safely access the email from the order, defaulting to 'anonymous_user' if it's missing.
  • Passes cart["items"] to process_order instead of the entire cart object.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 210427

Not quite right? Click here to continue debugging with Seer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants