Fixed an issue causing a traceback in the Email dialog when the email server behaves badly.

Thu, 23 Jun 2016 19:17:46 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 23 Jun 2016 19:17:46 +0200
changeset 5002
ee96cf64a855
parent 5001
08eaee907686
child 5004
556528860c7a

Fixed an issue causing a traceback in the Email dialog when the email server behaves badly.

UI/EmailDialog.py file | annotate | diff | comparison | revisions
--- a/UI/EmailDialog.py	Sat Jun 18 17:17:05 2016 +0200
+++ b/UI/EmailDialog.py	Thu Jun 23 19:17:46 2016 +0200
@@ -329,6 +329,8 @@
             QApplication.restoreOverrideCursor()
             if isinstance(e, smtplib.SMTPResponseException):
                 errorStr = e.smtp_error.decode()
+            elif isinstance(e, smtplib.SMTPException):
+                errorStr = str(e)
             elif isinstance(e, socket.error):
                 errorStr = e[1]
             else:

eric ide

mercurial