CVS: tmda/bin tmda-rfilter,1.105,1.106
"Jason R. Mastaler" <[email protected]>
| Newsgroups | gmane.mail.spam.tmda.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tmda/tmda/bin
In directory sc8-pr-cvs1:/tmp/cvs-serv29182/bin
Modified Files:
tmda-rfilter
Log Message:
Bugfix. In tmda-rfilter.main(), the first thing we do is decide
whether we should clean pending/. If this is the first time that
tmda-rfilter has ever run (there is no pending/) and we happen to hit
the random chance that cleanup *should* occur, Pending.initQueue()
will raise an exception because there is no pending/ directory.
Now we check whether pending/ exists before proceeding.
Index: tmda-rfilter
===================================================================
RCS file: /cvsroot/tmda/tmda/bin/tmda-rfilter,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -r1.105 -r1.106
--- tmda-rfilter 2 Sep 2003 03:53:52 -0000 1.105
+++ tmda-rfilter 22 Sep 2003 23:24:29 -0000 1.106
@@ -779,7 +779,8 @@
def main():
# Possibly clean the pending queue?
- if Defaults.PENDING_CLEANUP_ODDS <> 0:
+ if Defaults.PENDING_CLEANUP_ODDS <> 0 and \
+ os.path.exists(Defaults.PENDING_DIR):
from random import random
if random() < float(Defaults.PENDING_CLEANUP_ODDS):
from TMDA import Pending
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs