diff cgi-bin/roundup.cgi @ 965:b2c537f51fc5

Fix to be able to report errors even if the cgi module can't be imported(!)
author Richard Jones <richard@users.sourceforge.net>
date Thu, 22 Aug 2002 00:14:18 +0000
parents 18d4051bdae7
children dec4711e40b3
line wrap: on
line diff
--- a/cgi-bin/roundup.cgi	Wed Aug 21 07:07:27 2002 +0000
+++ b/cgi-bin/roundup.cgi	Thu Aug 22 00:14:18 2002 +0000
@@ -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 @@
     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: 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
 #

Roundup Issue Tracker: http://roundup-tracker.org/