MCPcopy Index your code
hub / github.com/ipython/ipython / make_report

Method make_report

IPython/core/crashhandler.py:208–227  ·  view source on GitHub ↗

Return a string containing a crash report.

(self, traceback: str)

Source from the content-addressed store, hash-verified

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
230def crash_handler_lite(

Callers 1

__call__Method · 0.95

Calls 1

sys_infoFunction · 0.90

Tested by

no test coverage detected