[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Backport to old pythons



Update of /home/minion/cvsroot/src/minion/lib/mixminion/server
In directory moria.mit.edu:/tmp/cvs-serv30873/lib/mixminion/server

Modified Files:
	Modules.py 
Log Message:
Backport to old pythons

Index: Modules.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/Modules.py,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- Modules.py	28 Sep 2003 04:12:29 -0000	1.56
+++ Modules.py	28 Sep 2003 05:26:32 -0000	1.57
@@ -200,9 +200,12 @@
                 try:
                     packet = handle.getMessage()
                 except mixminion.Filestore.CorruptedFile:
-                    continue
-                result = self.module.processMessage(packet)
-                if result == DELIVER_OK:
+                    packet = None
+                if packet:
+                    result = self.module.processMessage(packet)
+                if not packet:
+                    pass # Python<2.1 doesn't allow 'continue' inside 'try'.
+                elif result == DELIVER_OK:
                     LOG.debug("Successfully delivered message MOD:%s", dh)
                     handle.succeeded()
                     EventStats.log.successfulDelivery() #FFFF