summaryrefslogtreecommitdiffstats
path: root/wallace
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-10-23 07:39:27 -0400
committerThomas Bruederli <bruederli@kolabsys.com>2014-10-23 07:39:27 -0400
commit325441d8e67eee543a12390cc955718743455c9f (patch)
tree024d5d49dee0f1ce3a02db11663388103431bbf1 /wallace
parent843b5663f60fa4dc3029f6b48f45a5fae0942d46 (diff)
downloadpykolab-325441d8e67eee543a12390cc955718743455c9f.tar.gz
Break module iteration if the message has been consumed by any of the modules
Diffstat (limited to 'wallace')
-rw-r--r--wallace/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wallace/__init__.py b/wallace/__init__.py
index 6e41654..6698666 100644
--- a/wallace/__init__.py
+++ b/wallace/__init__.py
@@ -80,6 +80,9 @@ def pickup_message(filepath, *args, **kw):
else:
# A module has returned False or None
continue_with_accept = False
+ # The message very likely has been consumed by the module that returned False
+ if not os.path.isfile(filepath):
+ break
if continue_with_accept:
cb_action_ACCEPT('wallace', filepath)