This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Error on 'raise' does not show correct line number and Traceback message
Type: behavior Stage:
Components: Versions: Python 2.5
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: alexander.shirokov, georg.brandl
Priority: normal Keywords:

Created on 2007-10-08 05:49 by alexander.shirokov, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
debracket.py alexander.shirokov, 2007-10-08 05:49
Messages (3)
msg56265 - (view) Author: Alexander Shirokov (alexander.shirokov) Date: 2007-10-08 05:49
Please run debracket.py
It halts immediately and the message
explains the problem.
Regards
Alex
msg56269 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-10-08 07:08
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")
msg56270 - (view) Author: Alexander Shirokov (alexander.shirokov) Date: 2007-10-08 07:22
Dear Georg,

Thank you for reply. Sorry, I thought it was a real bug.

Best Regards,
Alex

On Mon, 8 Oct 2007, Georg Brandl wrote:

>
> 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@bugs.python.org>
> <http://bugs.python.org/issue1244>
> __________________________________
>

--
History
Date User Action Args
2022-04-11 14:56:27adminsetgithub: 45585
2007-10-08 07:22:32alexander.shirokovsetmessages: + msg56270
2007-10-08 07:08:10georg.brandlsetstatus: open -> closed
resolution: not a bug
messages: + msg56269
nosy: + georg.brandl
2007-10-08 05:49:27alexander.shirokovcreate