From 6e1a4d78f05486c5bfd2794e959901b66964b11d Mon Sep 17 00:00:00 2001 From: David Vierra Date: Wed, 3 Nov 2010 15:51:05 -1000 Subject: [PATCH] print the exception with more detail using !r --- mce.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mce.py b/mce.py index 152baa6..7eaf577 100644 --- a/mce.py +++ b/mce.py @@ -1185,7 +1185,9 @@ class mce(object): except Exception, e: if self.debug: traceback.print_exc(); - print e + print 'Exception during command: {0!r}'.format(e); + print "Use 'debug' to enable tracebacks." + #self.printUsage();