Skip to content

Commit 2c7170e

Browse files
author
Richard Jones
committed
Handle a special case that the CGI interface tickles.
I need to check if this needs fixing in python's core.
1 parent 4ca204d commit 2c7170e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

roundup/cgitb.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# This module was written by Ka-Ping Yee, <[email protected]>.
33
#
4-
# $Id: cgitb.py,v 1.9 2002-01-08 11:56:24 richard Exp $
4+
# $Id: cgitb.py,v 1.10 2002-01-16 04:49:45 richard Exp $
55

66
__doc__ = """
77
Extended CGI traceback handler by Ka-Ping Yee, <[email protected]>.
@@ -50,7 +50,7 @@ def html(context=5):
5050
<table width="100%%" bgcolor="#d8bbff" cellspacing=0 cellpadding=2 border=0>
5151
<tr><td>%s %s</td></tr></table>''' % (link, call)
5252

53-
if file is None:
53+
if index is None or file is None:
5454
traceback.append('<p>' + level)
5555
continue
5656

@@ -124,6 +124,9 @@ def handler():
124124

125125
#
126126
# $Log: not supported by cvs2svn $
127+
# Revision 1.9 2002/01/08 11:56:24 richard
128+
# missed an import _
129+
#
127130
# Revision 1.8 2002/01/05 02:22:32 richard
128131
# i18n'ification
129132
#

0 commit comments

Comments
 (0)