From f0ab2cd1863ed2f6da9a066a2a0556da536688d3 Mon Sep 17 00:00:00 2001 From: richard Date: Thu, 22 Aug 2002 00:14:18 +0000 Subject: [PATCH] Fix to be able to report errors even if the cgi module can't be imported(!) git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@982 57a73879-2fb5-44c3-a270-3262357dd7e2 --- cgi-bin/roundup.cgi | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cgi-bin/roundup.cgi b/cgi-bin/roundup.cgi index ca146d3..075b1c9 100755 --- a/cgi-bin/roundup.cgi +++ b/cgi-bin/roundup.cgi @@ -16,7 +16,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: roundup.cgi,v 1.24 2002-01-05 02:21:22 richard Exp $ +# $Id: roundup.cgi,v 1.25 2002-08-22 00:14:18 richard Exp $ # python version check from roundup import version_check @@ -69,11 +69,11 @@ try: import traceback, StringIO, cgi from roundup import cgitb except: - print "Content-Type: text/html\n" - print _("Failed to import cgitb.
")
+    print "Content-Type: text/plain\n"
+    print _("Failed to import cgitb!\n\n")
     s = StringIO.StringIO()
     traceback.print_exc(None, s)
-    print cgi.escape(s.getvalue()), "
" + print s.getvalue() # @@ -198,6 +198,9 @@ LOG.close() # # $Log: not supported by cvs2svn $ +# Revision 1.24 2002/01/05 02:21:22 richard +# fixes +# # Revision 1.23 2002/01/05 02:19:03 richard # i18n'ification # -- 2.30.2