Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix: silently fail name validation on connection error #3107

Merged

Conversation

asadali145
Copy link
Contributor

What are the relevant tickets?

None

Description (What does it do?)

Silently fail if name validation on connection error(Will be helpful for local setups). Also, fixes an issue with the exception msg when the response is None.

How can this be tested?

  • Test that the name is validated against open edX and an appropriate error is raised and displayed to the user.
  • Test that registration is successful when ConnectionError is thrown(open edX is down).

Copy link
Contributor

@arslanashraf7 arslanashraf7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@asadali145 asadali145 merged commit 3a120ff into master Aug 23, 2024
7 checks passed
@asadali145 asadali145 deleted the asad/silently-fail-connection-error-api-registration branch August 23, 2024 07:20
@odlbot odlbot mentioned this pull request Aug 27, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants