summaryrefslogtreecommitdiffstats
path: root/Demo/stdwin/python.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/stdwin/python.py')
-rwxr-xr-xDemo/stdwin/python.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Demo/stdwin/python.py b/Demo/stdwin/python.py
index 2e0edeb..29b0495 100755
--- a/Demo/stdwin/python.py
+++ b/Demo/stdwin/python.py
@@ -381,7 +381,9 @@ def do_exec(win):
except KeyboardInterrupt:
print '[Interrupt]'
except:
- msg = sys.exc_type
+ if type(sys.exc_type) == type(''):
+ msg = sys.exc_type
+ else: msg = sys.exc_type.__name__
if sys.exc_value <> None:
msg = msg + ': ' + `sys.exc_value`
if win.insertError: