Show More
@@ -1920,7 +1920,7 b' class InteractiveShell(Component, Magic):' | |||
|
1920 | 1920 | # SystemExit exception changed between Python 2.4 and 2.5, so |
|
1921 | 1921 | # the checks must be done in a version-dependent way. |
|
1922 | 1922 | show = False |
|
1923 |
if status. |
|
|
1923 | if status.args[0]==0 and not kw['exit_ignore']: | |
|
1924 | 1924 | show = True |
|
1925 | 1925 | if show: |
|
1926 | 1926 | self.showtraceback() |
@@ -6,11 +6,10 b' ipython.' | |||
|
6 | 6 | try: |
|
7 | 7 | import wx |
|
8 | 8 | except ImportError, e: |
|
9 |
e. |
|
|
9 | e.args[0] = """%s | |
|
10 | 10 | ________________________________________________________________________________ |
|
11 | 11 | You need wxPython to run this application. |
|
12 |
""" % e. |
|
|
13 | e.args = (e.message, ) + e.args[1:] | |
|
12 | """ % e.args[0] | |
|
14 | 13 | raise e |
|
15 | 14 | |
|
16 | 15 | from wx_frontend import WxController |
@@ -127,7 +127,9 b' class TaskRejectError(KernelError):' | |||
|
127 | 127 | class CompositeError(KernelError): |
|
128 | 128 | def __init__(self, message, elist): |
|
129 | 129 | Exception.__init__(self, *(message, elist)) |
|
130 | self.message = message | |
|
130 | # Don't use pack_exception because it will conflict with the .message | |
|
131 | # attribute that is being deprecated in 2.6 and beyond. | |
|
132 | self.msg = message | |
|
131 | 133 | self.elist = elist |
|
132 | 134 | |
|
133 | 135 | def _get_engine_str(self, ev): |
@@ -147,7 +149,7 b' class CompositeError(KernelError):' | |||
|
147 | 149 | return tb |
|
148 | 150 | |
|
149 | 151 | def __str__(self): |
|
150 |
s = str(self.m |
|
|
152 | s = str(self.msg) | |
|
151 | 153 | for et, ev, etb in self.elist: |
|
152 | 154 | engine_str = self._get_engine_str(ev) |
|
153 | 155 | s = s + '\n' + engine_str + str(et.__name__) + ': ' + str(ev) |
General Comments 0
You need to be logged in to leave comments.
Login now