Skip to content

Commit 681ab99

Browse files
author
Richard Jones
committed
Fix to be able to report errors even if the cgi module can't be imported(!)
1 parent 2006eec commit 681ab99

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

cgi-bin/roundup.cgi

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: roundup.cgi,v 1.24 2002-01-05 02:21:22 richard Exp $
19+
# $Id: roundup.cgi,v 1.25 2002-08-22 00:14:18 richard Exp $
2020

2121
# python version check
2222
from roundup import version_check
@@ -69,11 +69,11 @@ try:
6969
import traceback, StringIO, cgi
7070
from roundup import cgitb
7171
except:
72-
print "Content-Type: text/html\n"
73-
print _("Failed to import cgitb.<pre>")
72+
print "Content-Type: text/plain\n"
73+
print _("Failed to import cgitb!\n\n")
7474
s = StringIO.StringIO()
7575
traceback.print_exc(None, s)
76-
print cgi.escape(s.getvalue()), "</pre>"
76+
print s.getvalue()
7777

7878

7979
#
@@ -198,6 +198,9 @@ LOG.close()
198198

199199
#
200200
# $Log: not supported by cvs2svn $
201+
# Revision 1.24 2002/01/05 02:21:22 richard
202+
# fixes
203+
#
201204
# Revision 1.23 2002/01/05 02:19:03 richard
202205
# i18n'ification
203206
#

0 commit comments

Comments
 (0)