aboutsummaryrefslogtreecommitdiffstats
path: root/bin/genaliases
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2010-05-30 14:16:01 -0700
committerMark Sapiro <mark@msapiro.net>2010-05-30 14:16:01 -0700
commitfdcd7bb734b7d2717506664fe3b99b65d6dfa092 (patch)
tree5e085f1457767e24c62b915b5cadfd7d85453948 /bin/genaliases
parenta69957a9678e452c66fae52aafb1f5de939f1dc4 (diff)
downloadmailman2-fdcd7bb734b7d2717506664fe3b99b65d6dfa092.tar.gz
mailman2-fdcd7bb734b7d2717506664fe3b99b65d6dfa092.tar.xz
mailman2-fdcd7bb734b7d2717506664fe3b99b65d6dfa092.zip
Fixed bin/genaliases to not throw TypeError when MTA = None.
Bug #587657.
Diffstat (limited to '')
-rw-r--r--bin/genaliases6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/genaliases b/bin/genaliases
index 18b67efe..0a1a3dae 100644
--- a/bin/genaliases
+++ b/bin/genaliases
@@ -79,6 +79,12 @@ def main():
if args:
usage(1)
+ if not mm_cfg.MTA:
+ mta = repr(mm_cfg.MTA)
+ usage(2, _(
+ "genaliases can't do anything useful with mm_cfg.MTA = %(mta)s."
+ ))
+
# Import the MTA specific module
modulename = 'Mailman.MTA.' + mm_cfg.MTA
__import__(modulename)