From b7851694e0bcfad81844021da0dead4d0948c651 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 16 Feb 2009 16:15:34 +0000 Subject: raise more generic Exception() instead of RuntimeError() #5281 --- Doc/reference/simple_stmts.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index 8797ece..1e3cb85 100644 --- a/Doc/reference/simple_stmts.rst +++ b/Doc/reference/simple_stmts.rst @@ -503,7 +503,7 @@ You can create an exception and set your own traceback in one step using the :meth:`with_traceback` exception method (which returns the same exception instance, with its traceback set to its argument), like so:: - raise RuntimeError("foo occurred").with_traceback(tracebackobj) + raise Exception("foo occurred").with_traceback(tracebackobj) .. index:: pair: exception; chaining __cause__ (exception attribute) -- cgit v0.12