[Neo-report] r2027 vincent - /trunk/neo/dispatcher.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Apr 26 16:06:57 CEST 2010
Author: vincent
Date: Mon Apr 26 16:06:56 2010
New Revision: 2027
Log:
Make Dispatcher.pending more robust.
Modified:
trunk/neo/dispatcher.py
Modified: trunk/neo/dispatcher.py
==============================================================================
--- trunk/neo/dispatcher.py [iso-8859-1] (original)
+++ trunk/neo/dispatcher.py [iso-8859-1] Mon Apr 26 16:06:56 2010
@@ -87,5 +87,5 @@
@giant_lock
@profiler_decorator
def pending(self, queue):
- return not queue.empty() or self.queue_dict[id(queue)] > 0
+ return not queue.empty() or self.queue_dict.get(id(queue), 0) > 0
More information about the Neo-report
mailing list