Kaydet (Commit) b7851694 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

raise more generic Exception() instead of RuntimeError() #5281

üst 6ab24794
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment