dataflake.org

Home Documentation Software Old Stuff

start_maildrop daemon may die (Resolved)

Request MaildropHost -- bug report -- by panjunyong
Posted on Jul 18, 2007 2:15 am
Subscribe

Enter your email address to receive mail on every change to this issue.

Entries (Latest first)


  Resolve by Jens Vagelpohl on Jul 18, 2007 3:47 am
  I've checked a fix into the trunk:

http://svn.dataflake.org/?view=rev&revision=1421

The search page error you see is actually a UnicodeDecodeError which I don't get. I'm assuming your browser is asking for a different encoding than mine, probably utf-8. The site, since it's quite old, has latin-1-encoding all over the place instead of utf-8.
 

  Comment by Junyong Pan on Jul 18, 2007 3:04 am
  The trackback is:

File "/usr/lib/python2.4/smtplib.py", line 716, in quit
self.docmd("quit")
File "/usr/lib/python2.4/smtplib.py", line 377, in docmd
self.putcmd(cmd,args)
File "/usr/lib/python2.4/smtplib.py", line 333, in putcmd
self.send(str)
File "/usr/lib/python2.4/smtplib.py", line 325, in send
raise SMTPServerDisconnected('please run connect() first')
smtplib.SMTPServerDisconnected: please run connect() first

When I clicked search issues, I saw:

Ooops...
Your request to http://www.dataflake.org/tracker/searchForm did not succeed due to a server error.

Note: I didn't login to the site, but maybe you do. Maybe it is the reason it is ok for you.

 

  Comment by Jens Vagelpohl on Jul 18, 2007 2:40 am
  Can you tell me what exceptions you saw? I would rather catch specific exceptions and only use a bare try/except if nothing else works. Bare try/excepts are very bad practice.

By the way, what about the issue search doesn't work? It works very well for me.
 

  Initial Request by panjunyong on Jul 18, 2007 2:15 am
  I found the maildrop dies randomly. After some investigation I found in maildrop.py line 166:

smtp_server.quit()

may raise exceptions. So it is better use try-catch here:

try:
smtp_server.quit()
except:
pass

BTW: Search Issues function in this issue tracker doesn't work now.