Return a string containing a crash report.
(self, traceback: str)
| 206 | builtin_mod.input("Hit <Enter> to quit (your terminal may close):") |
| 207 | |
| 208 | def make_report(self, traceback: str) -> str: |
| 209 | """Return a string containing a crash report.""" |
| 210 | |
| 211 | sec_sep = self.section_sep |
| 212 | |
| 213 | report = ['*'*75+'\n\n'+'IPython post-mortem report\n\n'] |
| 214 | rpt_add = report.append |
| 215 | rpt_add(sys_info()) |
| 216 | |
| 217 | try: |
| 218 | config = pformat(self.app.config) |
| 219 | rpt_add(sec_sep) |
| 220 | rpt_add("Application name: %s\n\n" % self.app.name) |
| 221 | rpt_add("Current user configuration structure:\n\n") |
| 222 | rpt_add(config) |
| 223 | except: |
| 224 | pass |
| 225 | rpt_add(sec_sep+'Crash traceback:\n\n' + traceback) |
| 226 | |
| 227 | return ''.join(report) |
| 228 | |
| 229 | |
| 230 | def crash_handler_lite( |