Ticket #3382: deluge-2.0.3+smtp_errors_Notifications_plugin.patch
File deluge-2.0.3+smtp_errors_Notifications_plugin.patch, 868 bytes (added by lalbornoz, 4 years ago) |
---|
-
plugins/Notifications-0.3.egg/deluge_notifications/core.py
old new 16 16 17 17 import logging 18 18 import smtplib 19 import sys 19 20 from email.utils import formatdate 20 21 21 22 from twisted.internet import defer, threads … … 154 155 try: 155 156 server.sendmail(self.config['smtp_from'], to_addrs, message) 156 157 except smtplib.SMTPException as ex: 158 exc_info = sys.exc_info() 157 159 err_msg = ( 158 _('There was an error sending the notification email: %s ') % ex160 _('There was an error sending the notification email: %s, %s') % (exc_info[0], exc_info[1],) 159 161 ) 160 162 log.error(err_msg) 161 163 return ex