diff --git a/IPython/core/crashhandler.py b/IPython/core/crashhandler.py index 98042559df8..6e84fbb33c3 100644 --- a/IPython/core/crashhandler.py +++ b/IPython/core/crashhandler.py @@ -37,14 +37,14 @@ A crash report was automatically generated with the following information: - A verbatim copy of the crash traceback. - A copy of your input history during this session. - - Data on your current $self.app_name configuration. + - Data on your current {app_name} configuration. It was left in the file named: \t'{crash_report_fname}' If you can email this file to the developers, the information in it will help them in understanding and correcting the problem. -You can mail it to: $self.contact_name at {contact_email} +You can mail it to: {contact_name} at {contact_email} with the subject '{app_name} Crash Report'. If you want to do it now, the following command will work (under Unix): @@ -126,6 +126,7 @@ def __call__(self, etype, evalue, etb): # write the report filename into the instance dict so it can get # properly expanded out in the user message template self.crash_report_fname = report_name + self.info['crash_report_fname'] = report_name TBhandler = ultratb.VerboseTB( color_scheme=color_scheme, long_header=1, diff --git a/IPython/parallel/apps/baseapp.py b/IPython/parallel/apps/baseapp.py index 7a455b08341..614fa7fd6bb 100755 --- a/IPython/parallel/apps/baseapp.py +++ b/IPython/parallel/apps/baseapp.py @@ -53,34 +53,9 @@ class PIDFileError(Exception): # Crash handler for this application #----------------------------------------------------------------------------- - -_message_template = """\ -Oops, $self.app_name crashed. We do our best to make it stable, but... - -A crash report was automatically generated with the following information: - - A verbatim copy of the crash traceback. - - Data on your current $self.app_name configuration. - -It was left in the file named: -\t'$self.crash_report_fname' -If you can email this file to the developers, the information in it will help -them in understanding and correcting the problem. - -You can mail it to: $self.contact_name at $self.contact_email -with the subject '$self.app_name Crash Report'. - -If you want to do it now, the following command will work (under Unix): -mail -s '$self.app_name Crash Report' $self.contact_email < $self.crash_report_fname - -To ensure accurate tracking of this issue, please file a report about it at: -$self.bug_tracker -""" - class ParallelCrashHandler(CrashHandler): """sys.excepthook for IPython itself, leaves a detailed report on disk.""" - message_template = _message_template - def __init__(self, app): contact_name = release.authors['Min'][0] contact_email = release.authors['Min'][1]