Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#6723 closed defect (fixed)

TypeError with smtplib change, unexpected argument

Reported by: Kaveh Owned by: Robert Corsaro
Priority: normal Component: AnnouncerPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

With a recent update (running Trac 0.11.6, python 2.4) I got the following error. Commenting out the "timeout=self.smtp_timeout" in email_distributor.py seems to have fixed the problem and I'm getting email notifications again.

2010-02-24 10:51:10,576 Trac[api] ERROR: AnnouncementSystem failed.
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/AnnouncerPlugin-1.0_a1-py2.4.egg/announcerplugin/api.py", line 369, in _real_send
    distributor.distribute(transport, packages[transport], evt)
  File "/usr/lib/python2.4/site-packages/AnnouncerPlugin-1.0_a1-py2.4.egg/announcerplugin/distributors/email_distributor.py", line 236, in distribute
    self._do_send(transport, event, k, v, fmtdict[k])
  File "/usr/lib/python2.4/site-packages/AnnouncerPlugin-1.0_a1-py2.4.egg/announcerplugin/distributors/email_distributor.py", line 392, in _do_send
    self._transmit(*package)
  File "/usr/lib/python2.4/site-packages/AnnouncerPlugin-1.0_a1-py2.4.egg/announcerplugin/distributors/email_distributor.py", line 409, in _transmit
    timeout=self.smtp_timeout
TypeError: __init__() got an unexpected keyword argument 'timeout'
2010-02-24 10:51:10,577 Trac[api] DEBUG: AnnouncementSystem sent event in 0.11 seconds.

Attachments (0)

Change History (2)

comment:1 Changed 15 years ago by Robert Corsaro

Resolution: fixed
Status: newclosed

(In [7718]) Merge branch 'origin-0.11dev' into svn-0.11dev

fixes #6723

comment:2 Changed 15 years ago by Kaveh

excellent!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Robert Corsaro.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.