[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[minion-cvs] Print stack trace on ctrl-C from unittests or benchmarks
Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv15428/lib/mixminion
Modified Files:
Main.py
Log Message:
Print stack trace on ctrl-C from unittests or benchmarks
Index: Main.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/Main.py,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- Main.py 28 Aug 2003 01:40:07 -0000 1.57
+++ Main.py 3 Sep 2003 15:53:30 -0000 1.58
@@ -290,7 +290,9 @@
print "the MM_NO_FILE_PARANOIA"
print "environment variable.)"
sys.exit(1)
- except KeyboardInterrupt:
+ except KeyboardInterrupt, e:
+ if cmdName in ('unittests', 'benchmarks'):
+ raise
print "Interrupted."
except ImportError, e:
if str(e).find("_socket") >= 0: