summaryrefslogtreecommitdiffstats
path: root/wallace/module_invitationpolicy.py
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-08-06 19:30:17 -0400
committerThomas Bruederli <bruederli@kolabsys.com>2014-08-06 19:30:17 -0400
commit1d3d88ced320e151cf1b8ef53f15b4bee9e77a4e (patch)
tree1c3e5cdc4180714ce6ba8c0693b82493716e7ceb /wallace/module_invitationpolicy.py
parent06794d2351ee9db2b62aaacf554d4671e9174b80 (diff)
downloadpykolab-1d3d88ced320e151cf1b8ef53f15b4bee9e77a4e.tar.gz
Send delegation reply BEFORE the delegatee's accept reply; improve error logging; fixed a typo
Diffstat (limited to 'wallace/module_invitationpolicy.py')
-rw-r--r--wallace/module_invitationpolicy.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wallace/module_invitationpolicy.py b/wallace/module_invitationpolicy.py
index 6dfc111..8e77335 100644
--- a/wallace/module_invitationpolicy.py
+++ b/wallace/module_invitationpolicy.py
@@ -24,6 +24,7 @@ import time
from urlparse import urlparse
import urllib
import hashlib
+import traceback
from email import message_from_string
from email.parser import Parser
@@ -697,7 +698,7 @@ def find_existing_event(uid, user_rec, lock=False):
setattr(event, '_imap_folder', folder)
setattr(event, '_lock_key', lock_key)
except Exception, e:
- log.error(_("Failed to parse event from message %s/%s: %r") % (folder, num, e))
+ log.error(_("Failed to parse event from message %s/%s: %s") % (folder, num, traceback.format_exc()))
continue
if event and event.uid == uid: