From f5486c8df1e39bf59146e5af7fc2829f3845773a Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 28 Feb 2024 18:21:45 +0100 Subject: [PATCH] debuger error of smtpException --- idhub/admin/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idhub/admin/views.py b/idhub/admin/views.py index b670889..e2dd58f 100644 --- a/idhub/admin/views.py +++ b/idhub/admin/views.py @@ -1071,6 +1071,6 @@ class ImportAddView(NotifyActivateUserByEmail, ImportExport, FormView): try: self.send_email(user) except SMTPException as e: - messages.error(self.request, e) + messages.error(self.request, e.message) return super().form_valid(form)