UI/EmailDialog.py

changeset 5473
3074cca59d43
parent 5443
3ef014765648
child 5603
4f2dd0850803
--- a/UI/EmailDialog.py	Fri Feb 03 19:17:58 2017 +0100
+++ b/UI/EmailDialog.py	Sat Feb 04 12:41:38 2017 +0100
@@ -339,7 +339,7 @@
             elif isinstance(e, smtplib.SMTPException):
                 errorStr = str(e)
             elif isinstance(e, socket.error):
-                errorStr = e[1]
+                errorStr = e.strerror
             else:
                 errorStr = str(e)
             res = E5MessageBox.retryAbort(

eric ide

mercurial