diff roundup/cgitb.py @ 541:3eb5ea7e3720

Handle a special case that the CGI interface tickles. I need to check if this needs fixing in python's core.
author Richard Jones <richard@users.sourceforge.net>
date Wed, 16 Jan 2002 04:49:45 +0000
parents e0944187229f
children
line wrap: on
line diff
--- a/roundup/cgitb.py	Wed Jan 16 03:04:03 2002 +0000
+++ b/roundup/cgitb.py	Wed Jan 16 04:49:45 2002 +0000
@@ -1,7 +1,7 @@
 #
 # This module was written by Ka-Ping Yee, <ping@lfw.org>.
 # 
-# $Id: cgitb.py,v 1.9 2002-01-08 11:56:24 richard Exp $
+# $Id: cgitb.py,v 1.10 2002-01-16 04:49:45 richard Exp $
 
 __doc__ = """
 Extended CGI traceback handler by Ka-Ping Yee, <ping@lfw.org>.
@@ -50,7 +50,7 @@
 <table width="100%%" bgcolor="#d8bbff" cellspacing=0 cellpadding=2 border=0>
 <tr><td>%s %s</td></tr></table>''' % (link, call)
 
-        if file is None:
+        if index is None or file is None:
             traceback.append('<p>' + level)
             continue
 
@@ -124,6 +124,9 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.9  2002/01/08 11:56:24  richard
+# missed an import _
+#
 # Revision 1.8  2002/01/05 02:22:32  richard
 # i18n'ification
 #

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