debuger error of smtpException
This commit is contained in:
parent
e65ffb7e17
commit
f5486c8df1
|
@ -1071,6 +1071,6 @@ class ImportAddView(NotifyActivateUserByEmail, ImportExport, FormView):
|
||||||
try:
|
try:
|
||||||
self.send_email(user)
|
self.send_email(user)
|
||||||
except SMTPException as e:
|
except SMTPException as e:
|
||||||
messages.error(self.request, e)
|
messages.error(self.request, e.message)
|
||||||
|
|
||||||
return super().form_valid(form)
|
return super().form_valid(form)
|
||||||
|
|
Loading…
Reference in New Issue