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 Lucio Andrés Illanes Albornoz, 5 years ago)
  • plugins/Notifications-0.3.egg/deluge_notifications/core.py

    old new  
    1616
    1717import logging
    1818import smtplib
     19import sys
    1920from email.utils import formatdate
    2021
    2122from twisted.internet import defer, threads
     
    154155            try:
    155156                server.sendmail(self.config['smtp_from'], to_addrs, message)
    156157            except smtplib.SMTPException as ex:
     158                exc_info = sys.exc_info()
    157159                err_msg = (
    158                     _('There was an error sending the notification email: %s') % ex
     160                    _('There was an error sending the notification email: %s, %s') % (exc_info[0], exc_info[1],)
    159161                )
    160162                log.error(err_msg)
    161163                return ex