[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[minion-cvs] Fix nasty sync bug
Update of /home/minion/cvsroot/src/minion/lib/mixminion/server
In directory moria.mit.edu:/tmp/cvs-serv22213/lib/mixminion/server
Modified Files:
ServerQueue.py
Log Message:
Fix nasty sync bug
Index: ServerQueue.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/ServerQueue.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- ServerQueue.py 13 Feb 2003 06:30:23 -0000 1.7
+++ ServerQueue.py 17 Feb 2003 14:58:46 -0000 1.8
@@ -251,10 +251,13 @@
if m.startswith("rmv_"):
rmv.append(os.path.join(self.dir, m))
elif m.startswith("inp_"):
- s = os.stat(m)
- if s[stat.ST_MTIME] < allowedTime:
- self.__changeState(m[4:], "inp", "rmv")
- rmv.append(os.path.join(self.dir, m))
+ try:
+ s = os.stat(m)
+ if s[stat.ST_MTIME] < allowedTime:
+ self.__changeState(m[4:], "inp", "rmv")
+ rmv.append(os.path.join(self.dir, m))
+ except OSError:
+ pass
if secureDeleteFn:
secureDeleteFn(rmv)
else: