diff options
| author | 2018-03-14 02:56:04 +0100 | |
|---|---|---|
| committer | 2018-03-14 20:23:00 -0400 | |
| commit | 23ac25c0b388b5ffebf66154b12a3950b89b977a (patch) | |
| tree | 27ae214e393e6be2efc225d02ffc93135aaa2eb5 /minidinstall/mail.py | |
| parent | 9883708468224628f9e0e577162fb5345fe20eb4 (diff) | |
Port to Python 3
Diffstat (limited to 'minidinstall/mail.py')
| -rw-r--r-- | minidinstall/mail.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/minidinstall/mail.py b/minidinstall/mail.py index 30103a3..50df462 100644 --- a/minidinstall/mail.py +++ b/minidinstall/mail.py @@ -43,5 +43,5 @@ def send(smtp_server, smtp_from, smtp_to, body, subject="mini-dinstall mail noti smtp = smtplib.SMTP(smtp_server) smtp.sendmail(smtp_from, [smtp_to], mime_body.as_string()) logger.info("Mail sent to %s (%s)" % (smtp_to, subject)) - except Exception, e: + except Exception as e: logger.exception("Error sending mail to %s ('%s') via %s: %s: %s", smtp_to, subject, smtp_server, type(e), e.args) |
