Creates a processed traceback object from the exc_info.
(exc_info, source_hint=None)
| 130 | |
| 131 | |
| 132 | def make_traceback(exc_info, source_hint=None): |
| 133 | """Creates a processed traceback object from the exc_info.""" |
| 134 | exc_type, exc_value, tb = exc_info |
| 135 | if isinstance(exc_value, TemplateSyntaxError): |
| 136 | exc_info = translate_syntax_error(exc_value, source_hint) |
| 137 | initial_skip = 0 |
| 138 | else: |
| 139 | initial_skip = 1 |
| 140 | return translate_exception(exc_info, initial_skip) |
| 141 | |
| 142 | |
| 143 | def translate_syntax_error(error, source=None): |
nothing calls this directly
no test coverage detected
searching dependent graphs…