Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
greg
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
it-bott-integrasjoner
greg
Commits
320ec643
Commit
320ec643
authored
3 years ago
by
Tore.Brede
Browse files
Options
Downloads
Patches
Plain Diff
GREG-158: Addressing comment from code review
parent
64850ae8
No related branches found
No related tags found
1 merge request
!218
GREG-158: Better error reponse when e-mail sending failed for invite
Pipeline
#105625
passed
3 years ago
Stage: venv update
Stage: tests and linting
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gregui/api/views/invitation.py
+2
-2
2 additions, 2 deletions
gregui/api/views/invitation.py
with
2 additions
and
2 deletions
gregui/api/views/invitation.py
+
2
−
2
View file @
320ec643
...
@@ -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
.
e
rror
(
"
send_invite_mail
"
,
exception
=
exception
)
logger
.
e
xception
(
"
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
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment