summaryrefslogtreecommitdiffstats
path: root/index.py
diff options
context:
space:
mode:
Diffstat (limited to 'index.py')
-rwxr-xr-xindex.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/index.py b/index.py
index fcc0893..01b7bee 100755
--- a/index.py
+++ b/index.py
@@ -3,7 +3,7 @@
import sys
sys.path += ['/usr/lib/mailman']
-from web import template, form, application, ctx, wsgi
+from web import template, form, application, ctx, wsgi, config
from socket import gethostbyaddr, gethostbyname
import re
import Mailman.Utils
@@ -107,6 +107,9 @@ class new:
if __name__ == "__main__":
+ if not '--debug' in sys.argv:
+ config.debug = False
+
if '--fastcgi' in sys.argv:
wsgi.runwsgi = lambda func, addr=None: wsgi.runfcgi(func, addr)