print the exception with more detail using !r

This commit is contained in:
David Vierra 2010-11-03 15:51:05 -10:00
parent 46ee4181f3
commit 6e1a4d78f0

4
mce.py
View File

@ -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();