We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4391173 commit b2794c8Copy full SHA for b2794c8
1 file changed
Doc/reference/simple_stmts.rst
@@ -495,8 +495,8 @@ The :keyword:`raise` statement
495
496
If no expressions are present, :keyword:`raise` re-raises the last exception
497
that was active in the current scope. If no exception is active in the current
498
-scope, a :exc:`TypeError` exception is raised indicating that this is an error
499
-(if running under IDLE, a :exc:`queue.Empty` exception is raised instead).
+scope, a :exc:`RuntimeError` exception is raised indicating that this is an
+error.
500
501
Otherwise, :keyword:`raise` evaluates the first expression as the exception
502
object. It must be either a subclass or an instance of :class:`BaseException`.
0 commit comments