archiving fails when DumbBTree has to create new file

Bug #265166 reported by Jtittsler
2
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
High
Unassigned

Bug Description

In 2.0b3 Mailman/Archiver/HyperDatabase.py the DumbBTree() initialization
fails if the file specified does not exist. The error
passed back from open_ex always causes e.errno to be set
to None (rather than errno.ENOENT).

I didn't solve the problem, but just added a line before the try:
except: clause to avoid it.

     if not os.path.exists(path): return # e.errno below will be None
     try:
         fp = open(path)

[http://sourceforge.net/tracker/index.php?func=detail&aid=208837&group_id=103&atid=100103]

Tags: pipermail
Revision history for this message
Barry Warsaw (barry) wrote :

Fixed for 2.0beta4

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.