summaryrefslogtreecommitdiffstats
path: root/wallace/module_invitationpolicy.py
diff options
context:
space:
mode:
Diffstat (limited to 'wallace/module_invitationpolicy.py')
-rw-r--r--wallace/module_invitationpolicy.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/wallace/module_invitationpolicy.py b/wallace/module_invitationpolicy.py
index 6aee7b0..034b5d9 100644
--- a/wallace/module_invitationpolicy.py
+++ b/wallace/module_invitationpolicy.py
@@ -1178,7 +1178,9 @@ def send_update_notification(object, receiving_user, old=None, reply=True, sende
orgname = organizer.name()
itip_comment = None
- comment = comment.strip()
+ if comment is not None:
+ comment = comment.strip()
+
if sender is not None and not comment == '':
itip_comment = _("%s commented: %s") % (_attendee_name(sender), comment)
@@ -1332,7 +1334,9 @@ def send_cancel_notification(object, receiving_user, deleted=False, sender=None,
else:
message_text += " " + _("The copy in your calendar has been marked as cancelled accordingly.")
- comment = comment.strip()
+ if comment is not None:
+ comment = comment.strip()
+
if sender is not None and not comment == '':
message_text += "\n" + _("%s commented: %s") % (_attendee_name(sender), comment)