[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[minion-cvs] Fix a bug in error messages when unlisting a pending me...



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

Modified Files:
	ServerQueue.py 
Log Message:
Fix a bug in error messages when unlisting a pending message.

Index: ServerQueue.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/ServerQueue.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- ServerQueue.py	26 Mar 2003 16:32:02 -0000	1.10
+++ ServerQueue.py	26 Mar 2003 17:02:09 -0000	1.11
@@ -435,7 +435,8 @@
                 del self.pending[handle]
             except KeyError:
                 # This should never happen.
-                LOG.error("Handle %s was not pending", handle)
+                LOG.error_exc(sys.exc_info(),
+                              "Handle %s was not pending", handle)
         finally:
             self._lock.release()
 
@@ -451,7 +452,8 @@
                 del self.pending[handle]
             except KeyError:
                 # This should never happen
-                LOG.error("Handle %s was not pending")
+                LOG.error_exc(sys.exc_info(),
+                              "Handle %s was not pending", handle)
                 lastAttempt = 0
                 
             if retriable: