Commit e5de1f1b authored by Jean-Paul Smets's avatar Jean-Paul Smets

exceptions back

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@319 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 15427bec
No related merge requests found
......@@ -174,11 +174,11 @@ class ActivityTool (Folder, UniqueObject):
# Call distribute on each queue
for activity in activity_list:
#try:
if 1:
try:
#if 1:
activity.distribute(self, node_count)
#except:
else:
except:
#else:
LOG('CMFActivity:', 100, 'Core call to distribute failed for activity %s' % activity)
security.declarePublic('tic')
......@@ -216,12 +216,12 @@ class ActivityTool (Folder, UniqueObject):
while has_awake_activity:
has_awake_activity = 0
for activity in activity_list:
#try:
if 1:
try:
#if 1:
activity.tic(self, processing_node) # Transaction processing is the responsability of the activity
has_awake_activity = has_awake_activity or activity.isAwake(self, processing_node)
#except:
else:
except:
#else:
LOG('CMFActivity:', 100, 'Core call to tic or isAwake failed for activity %s' % activity)
# decrease the number of active_threads
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment