Skip to content

Commit

Permalink
Fix templates for CrashHandler.
Browse files Browse the repository at this point in the history
  • Loading branch information
chebee7i committed Jul 20, 2011
1 parent bbe178a commit eca0190
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 27 deletions.
5 changes: 3 additions & 2 deletions IPython/core/crashhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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,
Expand Down
25 changes: 0 additions & 25 deletions IPython/parallel/apps/baseapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit eca0190

Please sign in to comment.