diff options
Diffstat (limited to 'pym/portage/mail.py')
-rw-r--r-- | pym/portage/mail.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/mail.py b/pym/portage/mail.py index 260455739..a8b384969 100644 --- a/pym/portage/mail.py +++ b/pym/portage/mail.py @@ -126,9 +126,9 @@ def send_mail(mysettings, message): myconn.login(mymailuser, mymailpasswd) myconn.sendmail(myfrom, myrecipient, message.as_string()) myconn.quit() - except smtplib.SMTPException, e: + except smtplib.SMTPException as e: raise portage.exception.PortageException(_("!!! An error occured while trying to send logmail:\n")+str(e)) - except socket.error, e: + except socket.error as e: raise portage.exception.PortageException(_("!!! A network error occured while trying to send logmail:\n%s\nSure you configured PORTAGE_ELOG_MAILURI correctly?") % str(e)) return |