MCPcopy Create free account
hub / github.com/ipython/ipython / make_report

Method make_report

IPython/terminal/ipapp.py:74–91  ·  view source on GitHub ↗

Return a string containing a crash report.

(self,traceback)

Source from the content-addressed store, hash-verified

72 )
73
74 def make_report(self,traceback):
75 """Return a string containing a crash report."""
76
77 sec_sep = self.section_sep
78 # Start with parent report
79 report = [super(IPAppCrashHandler, self).make_report(traceback)]
80 # Add interactive-specific info we may have
81 rpt_add = report.append
82 try:
83 rpt_add(sec_sep+"History of session input:")
84 for line in self.app.shell.user_ns['_ih']:
85 rpt_add(line)
86 rpt_add('\n*** Last line of input (may not be in above history):\n')
87 rpt_add(self.app.shell._last_input_line+'\n')
88 except:
89 pass
90
91 return ''.join(report)
92
93#-----------------------------------------------------------------------------
94# Aliases and Flags

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected