[Mailman-Developers] mailman setup

Simone Piunno pioppo at ferrara.linux.it
Fri Jan 23 05:56:41 EST 2004


Alle 00:03, venerdì 23 gennaio 2004, Simone Piunno ha scritto:

>    try:
>       execfile('/etc/mailman.conf')
>    except SyntaxError:
>       # I don't know how to write better info, like the offending line

OK, this is better:

    except SyntaxError:
        import sys
        et, ev, tb = sys.exc_info()
        print 'Configuration Error:', ev
        sys.exit(1)

it will print:

  Configuration Error: invalid syntax (/etc/mailman.conf, line NNN)

Cheers,
  Simone

-- 
This signature intentionally left blank





More information about the Mailman-Developers mailing list