more debug

This commit is contained in:
Cayo Puigdefabregas 2024-02-21 14:19:59 +01:00
parent 93f2432edb
commit 603e7f65ba
1 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,5 @@
import logging
from django import forms from django import forms
from django.conf import settings from django.conf import settings
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _
@ -6,6 +8,9 @@ from oidc4vp.models import Organization
from idhub_auth.models import User from idhub_auth.models import User
logger = logging.getLogger(__name__)
class ProfileForm(forms.ModelForm): class ProfileForm(forms.ModelForm):
MANDATORY_FIELDS = ['first_name', 'last_name', 'email'] MANDATORY_FIELDS = ['first_name', 'last_name', 'email']
@ -111,7 +116,9 @@ class RequestCredentialForm(forms.Form):
try: try:
if self.password: if self.password:
cred.issue(did, self.password, domain=self._domain) cred.issue(did, self.password, domain=self._domain)
except Exception: assert 1==2
except Exception as err:
logger.debug(err)
return return
if commit: if commit: