Commit dd5e8d07 by Po Tsui

Fix PEP8 issues

parent a807aa04
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment