Bugs item #1178148, was opened at 2005-04-07 00:04
Message generated for change (Comment added) made by barry-scott
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1178148&group_id=5470
Category: Python Library
Group: Python 2.3
Status: Open
Resolution: Works For Me
Priority: 5
Submitted By: Barry Alan Scott (barry-scott)
Assigned to: Ka-Ping Yee (ping)
Summary: cgitb.py report wrong line number
Initial Comment:
Given code like
try:
raise 'bug'
except ValueError:
pass # cgitb.py think 'bug' is here
cgitb.py will report that the exception 'bug' is at the
pass line.
This is a time waster until you figure that this
problem exists.
----------------------------------------------------------------------
>Comment By: Barry Alan Scott (barry-scott)
Date: 2005-04-20 20:57
Message:
Logged In: YES
user_id=28665
I ran your example on Mac OS X 10.3.9 and its shipped Python 2.3
The attached exctest.html clear show the problem.
Did this get fixed in 2.4?
----------------------------------------------------------------------
Comment By: Ka-Ping Yee (ping)
Date: 2005-04-18 19:29
Message:
Logged In: YES
user_id=45338
Can't reproduce this problem. When i test the provided
case, cgitb reports the error on the "raise" line as it
should. See the attached file for my test case; cgitb
highlights line 6 ("raise 'spam'").
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1178148&group_id=5470
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com