diff --git a/idhub/user/views.py b/idhub/user/views.py index 0d0cb35..0a3bfde 100644 --- a/idhub/user/views.py +++ b/idhub/user/views.py @@ -159,7 +159,15 @@ class DemandAuthorizationView(MyWallet, FormView): return kwargs def form_valid(self, form): - authorization = form.save() + try: + authorization = form.save() + except Exception: + txt = _("Problems connecting with {url}").format( + url=form.org.response_uri + ) + messages.error(self.request, txt) + return super().form_valid(form) + if authorization: return redirect(authorization) else: