From 603e7f65ba864b60a9cde6b5242e3cf59dc42e78 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 21 Feb 2024 14:19:59 +0100 Subject: [PATCH] more debug --- idhub/user/forms.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/idhub/user/forms.py b/idhub/user/forms.py index 9561eb7..48eb15d 100644 --- a/idhub/user/forms.py +++ b/idhub/user/forms.py @@ -1,3 +1,5 @@ +import logging + from django import forms from django.conf import settings from django.utils.translation import gettext_lazy as _ @@ -6,6 +8,9 @@ from oidc4vp.models import Organization from idhub_auth.models import User +logger = logging.getLogger(__name__) + + class ProfileForm(forms.ModelForm): MANDATORY_FIELDS = ['first_name', 'last_name', 'email'] @@ -111,7 +116,9 @@ class RequestCredentialForm(forms.Form): try: if self.password: cred.issue(did, self.password, domain=self._domain) - except Exception: + assert 1==2 + except Exception as err: + logger.debug(err) return if commit: