File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,6 +54,24 @@ analysis.
5454 value forces plain text output. The default value is ``"html" ``.
5555
5656
57+ .. function :: text(info, context=5)
58+
59+ This function handles the exception described by *info * (a 3-tuple containing
60+ the result of :func: `sys.exc_info `), formatting its traceback as text and
61+ returning the result as a string. The optional argument *context * is the
62+ number of lines of context to display around the current line of source code
63+ in the traceback; this defaults to ``5 ``.
64+
65+
66+ .. function :: html(info, context=5)
67+
68+ This function handles the exception described by *info * (a 3-tuple containing
69+ the result of :func: `sys.exc_info `), formatting its traceback as HTML and
70+ returning the result as a string. The optional argument *context * is the
71+ number of lines of context to display around the current line of source code
72+ in the traceback; this defaults to ``5 ``.
73+
74+
5775.. function :: handler(info=None)
5876
5977 This function handles an exception using the default settings (that is, show a
You can’t perform that action at this time.
0 commit comments