Mercurial > p > roundup > code
diff roundup/mailgw.py @ 2706:3ebbb8111503
fix: [[CVS:1.154]] removed except else clause...
...but didn't change the indent of the contents.
as a result, messages were never attached to the issue
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Wed, 29 Sep 2004 08:30:24 +0000 |
| parents | b2fd52ba7ffa |
| children | a8808157f892 |
line wrap: on
line diff
--- a/roundup/mailgw.py Wed Sep 29 08:05:33 2004 +0000 +++ b/roundup/mailgw.py Wed Sep 29 08:30:24 2004 +0000 @@ -72,7 +72,7 @@ an exception, the original message is bounced back to the sender with the explanatory message given in the exception. -$Id: mailgw.py,v 1.156 2004-09-29 07:05:57 a1s Exp $ +$Id: mailgw.py,v 1.157 2004-09-29 08:30:24 a1s Exp $ """ __docformat__ = 'restructuredtext' @@ -915,15 +915,15 @@ Mail message was rejected by a detector. %s '''%error - # attach the message to the node - if nodeid: - # add the message to the node's list - messages = cl.get(nodeid, 'messages') - messages.append(message_id) - props['messages'] = messages - else: - # pre-load the messages list - props['messages'] = [message_id] + # attach the message to the node + if nodeid: + # add the message to the node's list + messages = cl.get(nodeid, 'messages') + messages.append(message_id) + props['messages'] = messages + else: + # pre-load the messages list + props['messages'] = [message_id] # # perform the node change / create
