Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error/ handle unknown email error by displaying flash message #251

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

LuuNa-JD
Copy link

This PR fixes a bug (#1) where the application crashed when a user entered an unrecognized email in the system. The fix includes:

  • Handling the error with a try...except to capture the case where the email is not found.
  • Displaying a flash message "Sorry, this email was not found." to inform the user.
  • Test with pytest to verify that the error is handled correctly and the message is displayed.

Tested:

The fix has been tested using pytest to ensure that the flash message displays correctly and that the application does not crash in the event of an unknown email.

Issue liée : #1

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant