diff roundup/mailer.py @ 5379:17edccfe1755

Python 3 preparation: "except" syntax. Changing "except Exception, var" to "except Exception as var". Tool-generated patch.
author Joseph Myers <jsm@polyomino.org.uk>
date Tue, 24 Jul 2018 21:42:22 +0000
parents 198b6e810c67
children 56c9bcdea47f
line wrap: on
line diff
--- a/roundup/mailer.py	Tue Jul 24 21:39:58 2018 +0000
+++ b/roundup/mailer.py	Tue Jul 24 21:42:22 2018 +0000
@@ -295,7 +295,7 @@
             except socket.error as value:
                 raise MessageSendError("Error: couldn't send email: "
                                        "mailhost %s"%value)
-            except smtplib.SMTPException, msg:
+            except smtplib.SMTPException as msg:
                 raise MessageSendError("Error: couldn't send email: %s"%msg)
 
 class SMTPConnection(smtplib.SMTP):

Roundup Issue Tracker: http://roundup-tracker.org/