diff options
author | Mark Sapiro <mark@msapiro.net> | 2010-05-30 14:16:01 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2010-05-30 14:16:01 -0700 |
commit | fdcd7bb734b7d2717506664fe3b99b65d6dfa092 (patch) | |
tree | 5e085f1457767e24c62b915b5cadfd7d85453948 /bin/genaliases | |
parent | a69957a9678e452c66fae52aafb1f5de939f1dc4 (diff) | |
download | mailman2-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 'bin/genaliases')
-rw-r--r-- | bin/genaliases | 6 |
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) |