From fdcd7bb734b7d2717506664fe3b99b65d6dfa092 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Sun, 30 May 2010 14:16:01 -0700 Subject: Fixed bin/genaliases to not throw TypeError when MTA = None. Bug #587657. --- bin/genaliases | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin/genaliases') 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) -- cgit v1.2.3