dataflake.org

Home Documentation Software Old Stuff Bug Reporting

Add Entry to: mainloop() may do log_file.write() after log_file.close() (Resolved)

Issue mainloop() may do log_file.write() after log_file.close() (bug report)
Posted 2009/03/22 by Nils R Grotnes
In maildrop.py, the while len(to_be_sent) loop contains multiple log_file.close() statements, followed by a break out of the loop. Right after the loop, there's a log_file.write(finish_msg) that in these cases will raise an error. In our case crashing maildrop.py, though I suppose that depends on the calling code. In any case, the code flow should allow for just removing the early log_file.close() statements, since this will always be done after the while loop has been exited. This fix works for us.


Full name
Email address