summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mailman/app/bounces.py4
1 files 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