From: Benjamin Peterson Date: Mon, 16 Feb 2009 16:15:34 +0000 (+0000) Subject: raise more generic Exception() instead of RuntimeError() #5281 X-Git-Tag: v3.1a1~166 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7851694e0bcfad81844021da0dead4d0948c651;p=thirdparty%2FPython%2Fcpython.git raise more generic Exception() instead of RuntimeError() #5281 --- diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index 8797ece76a42..1e3cb8559bbf 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)