Don't die if sending email fails

This commit is contained in:
Anna Sidwell 2019-03-04 23:39:10 +11:00
parent 2e4b09fecd
commit 57ac8eab86

View File

@ -91,7 +91,11 @@ class BaseForm(LoginRequiredMixin, CreateView):
self.object.author = self.request.user
self.object.save()
# Don't error if the email can't be sent
try:
self.send_email()
except:
pass
# Delete the corresponding draft
try: