Message764

Author pedronis
Recipients
Date 2002-10-18.19:07:47
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
https://sourceforge.net/mailarchive/message.php?
msg_id=2209764

When an exception is raised in jython, 
sys.last_traceback  doesn't seem to 
 get, and sys.exc_info() returns (None, None, None).
 sys.exc_info() only seems to return something while in 
a catch block, i.e.
 
 try:
         raise 'hello'
 except:
         print sys.last_traceback
         print sys.exc_info()
 
 None
 ('hello', None, <traceback object at 18669924>)
 
 
 raise 'hello'
 Traceback (innermost last):
   File "<console>", line 1, in ?
 hello
 print sys.last_traceback
 None
 print sys.exc_info()
 (None, None, None).
 
 Is this intentional?
 If so, how do I get the pdb postmortem facility to 
work - it tries to 
 access sys.last_traceback
 
 Matt
 
History
Date User Action Args
2008-02-20 17:17:10adminlinkissue625364 messages
2008-02-20 17:17:10admincreate