Don't die if sending email fails
This commit is contained in:
parent
2e4b09fecd
commit
57ac8eab86
@ -91,7 +91,11 @@ class BaseForm(LoginRequiredMixin, CreateView):
|
||||
self.object.author = self.request.user
|
||||
self.object.save()
|
||||
|
||||
self.send_email()
|
||||
# Don't error if the email can't be sent
|
||||
try:
|
||||
self.send_email()
|
||||
except:
|
||||
pass
|
||||
|
||||
# Delete the corresponding draft
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user