From 70ab4e70cff247ea3c9f82ba30cf612dd62c4a10 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 17 Dec 2014 21:36:52 -0500 Subject: Fix test_bounces. --- src/mailman/app/bounces.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mailman/app/bounces.py b/src/mailman/app/bounces.py index 101d96f2a..0f39e611e 100644 --- a/src/mailman/app/bounces.py +++ b/src/mailman/app/bounces.py @@ -71,8 +71,8 @@ def bounce_message(mlist, msg, error=None): :type error: Exception """ # Bounce a message back to the sender, with an error message if provided - # in the exception argument. - if msg.sender is None: + # in the exception argument. .sender might be None or the empty string. + if not msg.sender: # We can't bounce the message if we don't know who it's supposed to go # to. return -- cgit v1.2.3-70-g09d2