diff options
Diffstat (limited to 'Lib/stdwin/wdbframewin.py')
-rwxr-xr-x | Lib/stdwin/wdbframewin.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/stdwin/wdbframewin.py b/Lib/stdwin/wdbframewin.py index 13bd173..7a0ff39 100755 --- a/Lib/stdwin/wdbframewin.py +++ b/Lib/stdwin/wdbframewin.py @@ -100,7 +100,10 @@ class FrameWindow(basewin.BaseWindow): value = eval(expr, globals, locals) output = repr.repr(value) except: - output = sys.exc_type + ': ' + `sys.exc_value` + if type(sys.exc_type) == type(''): + exc_type_name = sys.exc_type + else: exc_type_name = sys.exc_type.__name__ + output = exc_type_name + ': ' + `sys.exc_value` self.displaylist[1] = output lh = stdwin.lineheight() r = (-10, 0), (30000, 2*lh) |