File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,24 @@ analysis.
54
54
value forces plain text output. The default value is ``"html" ``.
55
55
56
56
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
+
57
75
.. function :: handler(info=None)
58
76
59
77
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