Skip to content
Snippets Groups Projects
Commit 320ec643 authored by Tore.Brede's avatar Tore.Brede
Browse files

GREG-158: Addressing comment from code review

parent 64850ae8
No related branches found
No related tags found
1 merge request!218GREG-158: Better error reponse when e-mail sending failed for invite
Pipeline #105625 passed
...@@ -77,8 +77,8 @@ class InvitationView(CreateAPIView, DestroyAPIView): ...@@ -77,8 +77,8 @@ class InvitationView(CreateAPIView, DestroyAPIView):
): ):
try: try:
send_invite_mail(invitationlink) send_invite_mail(invitationlink)
except Exception as exception: except Exception:
logger.error("send_invite_mail", exception=exception) logger.exception("send_invite_mail_failed", exc_info=True)
# The invite has been created, so send 201, but include some data saying the # The invite has been created, so send 201, but include some data saying the
# e-mail was not sent properly # e-mail was not sent properly
return Response( return Response(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment