summaryrefslogtreecommitdiffstats
path: root/wallace/module_resources.py
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-03-04 17:59:49 -0500
committerThomas Bruederli <bruederli@kolabsys.com>2014-03-04 17:59:49 -0500
commitb6fe11ce3ea308ed4fcaaa2e3b297eb3899cb277 (patch)
treea81437de5baa7ef7f490f364bafaa9f3b7889578 /wallace/module_resources.py
parent65df5988b84608386dd0b56c6e60e3eb9a67e83e (diff)
downloadpykolab-b6fe11ce3ea308ed4fcaaa2e3b297eb3899cb277.tar.gz
Append num_messages for every resource calendar that was examined
Diffstat (limited to 'wallace/module_resources.py')
-rw-r--r--wallace/module_resources.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wallace/module_resources.py b/wallace/module_resources.py
index 3db2209..4202098 100644
--- a/wallace/module_resources.py
+++ b/wallace/module_resources.py
@@ -270,6 +270,7 @@ def execute(*args, **kw):
#
# Store the (first) conflicting event(s) alongside the resource information.
start = time.time()
+ num_messages = 0
for resource in resources.keys():
# skip this for resource collections
@@ -278,10 +279,9 @@ def execute(*args, **kw):
# sets the 'conflicting' flag and adds a list of conflicting events found
try:
- num_messages = read_resource_calendar(resources[resource], itip_events)
+ num_messages += read_resource_calendar(resources[resource], itip_events)
except Exception, e:
log.error(_("Failed to read resource calendar for %r: %r") % (resource, e))
- continue
end = time.time()