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.
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'").
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?
Logged In: YES user_id=45338 I'm going to close this. I've tested it in Python 2.3.5, 2.4.1, and 2.5a0. It works correctly in every case, so it was probably fixed between 2.3 and 2.3.5.