changeset 2113:20124633e8b4

Fix generation of "comments" notification.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Tue, 12 Jun 2007 00:08:16 +0200
parents a4d95b9d8f37
children 38ef27ddaa66
files MoinMoin/events/messages.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/events/messages.py	Mon Jun 11 22:31:49 2007 +0200
+++ b/MoinMoin/events/messages.py	Tue Jun 12 00:08:16 2007 +0200
@@ -87,7 +87,7 @@
     else:
         raise UnknownChangeType()
     
-    if 'comment' in kwargs:
+    if 'comment' in kwargs and kwargs['comment'] is not None:
         messageBody = messageBody + \
             _("The comment on the change is:\n%(comment)s\n\n", formatted=False) % {'comment': kwargs['comment']}