debuger error of smtpException

This commit is contained in:
Cayo Puigdefabregas 2024-02-28 18:21:45 +01:00
parent e65ffb7e17
commit f5486c8df1
1 changed files with 1 additions and 1 deletions

View File

@ -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)