Skip to content

Commit 479c0d0

Browse files
committed
Python 3 preparation: "except" syntax.
Changing "except Exception, var" to "except Exception as var". Tool-generated patch.
1 parent eccd835 commit 479c0d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/mailer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def smtp_send(self, to, message, sender=None):
295295
except socket.error as value:
296296
raise MessageSendError("Error: couldn't send email: "
297297
"mailhost %s"%value)
298-
except smtplib.SMTPException, msg:
298+
except smtplib.SMTPException as msg:
299299
raise MessageSendError("Error: couldn't send email: %s"%msg)
300300

301301
class SMTPConnection(smtplib.SMTP):

0 commit comments

Comments
 (0)