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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 23 Jun 2016 19:17:46 +0200
branch
6_1_x
changeset 5003
22c59d1ea818
parent 4998
a1dbf2aef551
child 5010
4990220334dc

Fixed an issue causing a traceback in the Email dialog when the email server behaves badly.
(grafted from ee96cf64a855a846126ecdc57a07af14c0847ee6)

UI/EmailDialog.py file | annotate | diff | comparison | revisions
diff -r a1dbf2aef551 -r 22c59d1ea818 UI/EmailDialog.py
--- a/UI/EmailDialog.py	Wed Jun 15 19:44:21 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