Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#6723 closed defect (fixed)

TypeError with smtplib change, unexpected argument

Reported by: kavehv Owned by: doki_pen
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 5 years ago by doki_pen

  • Resolution set to fixed
  • Status changed from new to closed

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

fixes #6723

comment:2 Changed 5 years ago by kavehv

excellent!

Add Comment

Modify Ticket

Action
as closed The owner will remain doki_pen.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.