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

Method __init__

IPython/core/crashhandler.py:97–135  ·  view source on GitHub ↗

Create a new crash handler Parameters ---------- app : Application A running :class:`Application` instance, which will be queried at crash time for internal information. contact_name : str A string with the name of the person to

(self, app, contact_name=None, contact_email=None,
                 bug_tracker=None, show_crash_traceback=True, call_pdb=False)

Source from the content-addressed store, hash-verified

95 section_sep = '\n\n'+'*'*75+'\n\n'
96
97 def __init__(self, app, contact_name=None, contact_email=None,
98 bug_tracker=None, show_crash_traceback=True, call_pdb=False):
99 """Create a new crash handler
100
101 Parameters
102 ----------
103 app : Application
104 A running :class:`Application` instance, which will be queried at
105 crash time for internal information.
106
107 contact_name : str
108 A string with the name of the person to contact.
109
110 contact_email : str
111 A string with the email address of the contact.
112
113 bug_tracker : str
114 A string with the URL for your project's bug tracker.
115
116 show_crash_traceback : bool
117 If false, don't print the crash traceback on stderr, only generate
118 the on-disk report
119
120 Non-argument instance attributes:
121
122 These instances contain some non-argument attributes which allow for
123 further customization of the crash handler's behavior. Please see the
124 source for further details.
125 """
126 self.crash_report_fname = "Crash_report_%s.txt" % app.name
127 self.app = app
128 self.call_pdb = call_pdb
129 #self.call_pdb = True # dbg
130 self.show_crash_traceback = show_crash_traceback
131 self.info = dict(app_name = app.name,
132 contact_name = contact_name,
133 contact_email = contact_email,
134 bug_tracker = bug_tracker,
135 crash_report_fname = self.crash_report_fname)
136
137
138 def __call__(self, etype, evalue, etb):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected