summaryrefslogtreecommitdiff
path: root/src/mailman/app/bounces.py
diff options
context:
space:
mode:
authorBarry Warsaw2014-12-17 21:36:52 -0500
committerBarry Warsaw2014-12-17 21:36:52 -0500
commit70ab4e70cff247ea3c9f82ba30cf612dd62c4a10 (patch)
treec1a866b1c391557736fb8631dce51e53b521d288 /src/mailman/app/bounces.py
parent5c08e3027d42f51608361eb8f4672ccf28d76a79 (diff)
downloadmailman-70ab4e70cff247ea3c9f82ba30cf612dd62c4a10.tar.gz
mailman-70ab4e70cff247ea3c9f82ba30cf612dd62c4a10.tar.zst
mailman-70ab4e70cff247ea3c9f82ba30cf612dd62c4a10.zip
Diffstat (limited to 'src/mailman/app/bounces.py')
-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