Code

Fix to be able to report errors even if the cgi module can't be imported(!)
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 22 Aug 2002 00:14:18 +0000 (00:14 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 22 Aug 2002 00:14:18 +0000 (00:14 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@982 57a73879-2fb5-44c3-a270-3262357dd7e2

cgi-bin/roundup.cgi

index ca146d34e09c3586c789c5b01ae2b2a993fafc9e..075b1c95d33e9c05f9692d0685880962c8baa89e 100755 (executable)
@@ -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.<pre>")
+    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()), "</pre>"
+    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
 #