summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-02-26 06:15:15 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2015-02-26 06:15:15 (GMT)
commitdaaa39a33e05934462b42d650873a4453c6fd5ca (patch)
treea7924de330d10ea6f1dbe55d024afee55bb557c8
parentb72c251c43f34fde9a7738726df9b1d5b7403f11 (diff)
downloadpykolab-daaa39a33e05934462b42d650873a4453c6fd5ca.tar.gz
Reset return vars when recurrence-id doesn't match (#4706)
-rw-r--r--wallace/module_invitationpolicy.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wallace/module_invitationpolicy.py b/wallace/module_invitationpolicy.py
index 6ac5389..405f743 100644
--- a/wallace/module_invitationpolicy.py
+++ b/wallace/module_invitationpolicy.py
@@ -825,6 +825,8 @@ def find_existing_object(uid, type, recurrence_id, user_rec, lock=False):
log.debug(_("Recurrence-ID not matching on message %s, skipping: %r != %r") % (
msguid, recurrence_id, event.get_recurrence_id()
), level=8)
+ event = None
+ master = None
continue
setattr(event, '_imap_folder', folder)