diff options
author | Mark Sapiro <mark@msapiro.net> | 2018-04-13 09:31:18 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2018-04-13 09:31:18 -0700 |
commit | 672e7208eef2506e3cee82cfebd83d71e734f3e4 (patch) | |
tree | d0c4596c13a26dace06b591c6b6b18d24ba872b7 /scripts | |
parent | a942e159e5c738072efa8fa8c4d7c76cc35a7db5 (diff) | |
download | mailman2-672e7208eef2506e3cee82cfebd83d71e734f3e4.tar.gz mailman2-672e7208eef2506e3cee82cfebd83d71e734f3e4.tar.xz mailman2-672e7208eef2506e3cee82cfebd83d71e734f3e4.zip |
Give a better message from scripts/driver on SyntaxError in mm_cfg.py.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/driver | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/driver b/scripts/driver index 67ff0fdf..3c8f831b 100644 --- a/scripts/driver +++ b/scripts/driver @@ -1,6 +1,6 @@ # -*- python -*- -# Copyright (C) 1998-2013 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2018 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -143,7 +143,8 @@ def print_traceback(logfp=None): traceback = None try: from Mailman.mm_cfg import VERSION - except ImportError: + except: + # There could be any exception if mm_cfg.py is not valid python. VERSION = '<undetermined>' # Write to the log file first. @@ -182,7 +183,7 @@ a description of what happened. Thanks! print '''<p>Please inform the webmaster for this site of this problem. Printing of traceback and other system information has been explicitly inhibited, but the webmaster can find this information in the -Mailman error logs.''' +Mailman error logs or the web server logs.''' |