test: show traceback on smtp error

This commit is contained in:
Shivam Mishra 2020-08-14 18:30:27 +05:30
parent f6d110f115
commit beaaf16758

View file

@ -244,7 +244,7 @@ class SMTPServer:
except _socket.error as e:
# Invalid mail server -- due to refusing connection
frappe.msgprint(_('Invalid Outgoing Mail Server or Port'))
frappe.msgprint(_('Invalid Outgoing Mail Server or Port <br> {}').format(frappe.get_traceback()))
traceback = sys.exc_info()[2]
raise_(frappe.ValidationError, e, traceback)