]> code.delx.au - pymsnt/commitdiff
Fixed housekeep to run cleanly over an already updated spool dir.
authorjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Thu, 8 Jun 2006 12:46:12 +0000 (12:46 +0000)
committerjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Thu, 8 Jun 2006 12:46:12 +0000 (12:46 +0000)
git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@171 55fbd22a-6204-0410-b2f0-b6c764c7e90a

committer: jamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>

src/housekeep.py

index 00f83bd7b057d7b197f3060521a3edf8a23aab72..1020481c74bb9f7c51961d585ecd272961f71194 100644 (file)
@@ -68,6 +68,8 @@ def doSpoolPrepCheck():
 
        for file in os.listdir(pre):
                try:
+                       if not os.path.isfile(file):
+                               continue
                        file = xdb.unmangle(file).decode("utf-8")
                        filej = xmlw.jid.intern(file).full()
                        if(file != filej):