diff --git a/openedx/core/djangoapps/user_api/views.py b/openedx/core/djangoapps/user_api/views.py index a2410df245..f31b798fea 100644 --- a/openedx/core/djangoapps/user_api/views.py +++ b/openedx/core/djangoapps/user_api/views.py @@ -365,7 +365,9 @@ class RegistrationView(APIView): try: user = create_account_with_params(request, data) except AccountValidationError as err: - errors = { err.field: [{"user_message": err.message}] } + errors = { + err.field: [{"user_message": err.message}] + } return JsonResponse(errors, status=409) except ValidationError as err: # Should only get non-field errors from this function