add logger in issue credentials
This commit is contained in:
commit
f648c4975d
|
@ -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']
|
||||
|
||||
|
@ -109,7 +114,8 @@ class RequestCredentialForm(forms.Form):
|
|||
cred = cred[0]
|
||||
try:
|
||||
cred.issue(did, domain=self._domain)
|
||||
except Exception:
|
||||
except Exception as err:
|
||||
logger.error(err)
|
||||
return
|
||||
|
||||
if commit:
|
||||
|
|
Loading…
Reference in a new issue