Commit c8727102 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

signup view in case of any error display error message

parent e2125441
......@@ -312,7 +312,7 @@ def signup(request, template_name='signup.html', extra_context={}, backend=None)
if next:
return redirect(next)
messages.add_message(request, status, message)
except Invitation.DoesNotExist, e:
except (Invitation.DoesNotExist, Exception), e:
messages.add_message(request, messages.ERROR, e)
return render_response(template_name,
form = form if 'form' in locals() else UserCreationForm(),
......
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