[issue1244] Error on 'raise' does not show correct line number and Traceback message

Georg Brandl report at bugs.python.org
Mon Oct 8 09:08:11 CEST 2007


Georg Brandl added the comment:

The raise statement without any arguments re-raises the last raised
exception, complete with traceback, see
http://docs.python.org/dev/reference/simple_stmts.html#the-raise-statement. 

Therefore your usage of the raise statement is incorrect; you should
always use

raise SomeException("some message")

----------
nosy: +georg.brandl
resolution:  -> invalid
status: open -> closed

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1244>
__________________________________


More information about the Python-bugs-list mailing list